提交 8323a338 authored 作者: 王鹏飞's avatar 王鹏飞

fix: 调整移动端题号浮钮位置

上级 9ec605d6
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" /> <link rel="icon" href="/favicon.ico" />
<meta name="theme-color" content="#3276fc" /> <meta name="theme-color" content="#3276fc" />
<meta name="viewport" id="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> <meta name="viewport" id="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover" />
<title></title> <title></title>
</head> </head>
<body> <body>
......
...@@ -270,6 +270,14 @@ export default { ...@@ -270,6 +270,14 @@ export default {
/* ========== 移动端适配 ========== */ /* ========== 移动端适配 ========== */
// 横屏手机 + 平板
@media (min-width: 768px) and (max-width: 991px) {
.flag-tips {
width: 180px;
padding: 10px 0 6px;
}
}
// 竖屏手机 // 竖屏手机
@media (max-width: 767px) { @media (max-width: 767px) {
.info { .info {
......
...@@ -331,6 +331,7 @@ export default { ...@@ -331,6 +331,7 @@ export default {
} }
} }
.explain-box { .explain-box {
position: relative;
width: 100%; width: 100%;
min-height: 100%; min-height: 100%;
background: #f9f9f9; background: #f9f9f9;
...@@ -477,7 +478,7 @@ export default { ...@@ -477,7 +478,7 @@ export default {
transform: none; transform: none;
width: 100%; width: 100%;
background: #fff; background: #fff;
padding: 16px 0 24px; padding: 16px 0 calc(24px + env(safe-area-inset-bottom));
box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08); box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
.tips { .tips {
text-align: center; text-align: center;
......
...@@ -327,6 +327,7 @@ export default { ...@@ -327,6 +327,7 @@ export default {
.exam-container { .exam-container {
width: 100%; width: 100%;
height: 100vh; height: 100vh;
height: 100dvh;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
overflow: hidden; overflow: hidden;
...@@ -495,7 +496,7 @@ export default { ...@@ -495,7 +496,7 @@ export default {
} }
.footer { .footer {
height: auto; height: auto;
padding: 8px 12px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
flex-wrap: wrap; flex-wrap: wrap;
gap: 8px; gap: 8px;
.exam-btn { .exam-btn {
...@@ -527,7 +528,7 @@ export default { ...@@ -527,7 +528,7 @@ export default {
.mobile-num-fab { .mobile-num-fab {
display: flex; display: flex;
position: fixed; position: fixed;
bottom: 80px; bottom: calc(96px + env(safe-area-inset-bottom));
right: 16px; right: 16px;
width: 48px; width: 48px;
height: 48px; height: 48px;
...@@ -592,12 +593,7 @@ export default { ...@@ -592,12 +593,7 @@ export default {
overflow-y: auto; overflow-y: auto;
padding: 0 16px 24px; padding: 0 16px 24px;
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
// 隐藏原有固定定位的图例(在弹出层内部跟着文档流) // 图例在弹出层内跟随文档流(由 QuestionNum 组件自身处理)
.flag-tips {
position: static;
width: 100%;
padding: 10px 0 0;
}
} }
} }
} }
......
...@@ -50,6 +50,7 @@ export default { ...@@ -50,6 +50,7 @@ export default {
left: 50%; left: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
width: 342px; width: 342px;
max-width: 90vw;
height: 220px; height: 220px;
background: #ffffff; background: #ffffff;
border-radius: 5px; border-radius: 5px;
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论