Commit 653208df by chenwq1

fix: 兼容限制iphone滑动

1 parent 498e5084
Pipeline #152 for 653208df failed in 0 seconds
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
} }
html { html {
overflow-x: hidden;
font-size: 16px; font-size: 16px;
text-size-adjust: 100%; text-size-adjust: 100%;
scroll-behavior: smooth; scroll-behavior: smooth;
...@@ -16,6 +17,7 @@ html { ...@@ -16,6 +17,7 @@ html {
body { body {
padding: 0; padding: 0;
margin: 0; margin: 0;
overflow-x: hidden;
overscroll-behavior: none; overscroll-behavior: none;
line-height: 1.5; line-height: 1.5;
color: #323233; color: #323233;
...@@ -32,6 +34,7 @@ body { ...@@ -32,6 +34,7 @@ body {
max-width: 430px; max-width: 430px;
min-height: 100vh; min-height: 100vh;
margin: 0 auto; margin: 0 auto;
overflow-x: hidden;
background-color: #f7f8fa; background-color: #f7f8fa;
} }
......
...@@ -112,7 +112,9 @@ function onTabChange(index: number | string) { ...@@ -112,7 +112,9 @@ function onTabChange(index: number | string) {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
width: 100%; width: 100%;
min-width: 0;
min-height: 100vh; min-height: 100vh;
overflow-x: hidden;
background-color: var(--color-bg-page); background-color: var(--color-bg-page);
// 让 RouterView 内容区占满剩余空间,tabbar 自然沉底 // 让 RouterView 内容区占满剩余空间,tabbar 自然沉底
......
...@@ -251,6 +251,8 @@ onMounted(() => { ...@@ -251,6 +251,8 @@ onMounted(() => {
.inspect-page { .inspect-page {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
width: 100%;
min-width: 0;
height: 100vh; height: 100vh;
// stylelint-disable-next-line declaration-block-no-duplicate-properties // stylelint-disable-next-line declaration-block-no-duplicate-properties
height: calc(100dvh - env(safe-area-inset-top)); height: calc(100dvh - env(safe-area-inset-top));
...@@ -340,7 +342,9 @@ onMounted(() => { ...@@ -340,7 +342,9 @@ onMounted(() => {
display: flex; display: flex;
flex: 1; flex: 1;
flex-direction: column; flex-direction: column;
min-width: 0;
min-height: 0; min-height: 0;
overflow-x: hidden;
overflow-y: auto; overflow-y: auto;
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!