Skip to content

Commit e329f29

Browse files
committed
fix: van-popup display in PC mode
1 parent c2febda commit e329f29

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

src/App.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ onMounted(() => {
5454
<style scoped>
5555
.app-wrapper {
5656
width: 100%;
57-
height: calc(100vh - 46px);
57+
height: 100%;
58+
padding-top: 46px;
59+
overflow-y: auto;
5860
position: absolute;
59-
top: 46px;
6061
left: 0;
61-
overflow-y: auto;
6262
}
6363
</style>

src/styles/app.less

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ body {
2525
}
2626

2727
::-webkit-scrollbar {
28-
width: 0;
28+
/** Don't remove this line **/
29+
width: 1px;
2930
background: transparent;
3031
}
3132

vite.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ export default ({ mode }: ConfigEnv): UserConfig => {
4242
appSelector: '#app',
4343
viewportWidth: 375,
4444
maxDisplayWidth: 600,
45+
appContainingBlock: 'auto',
46+
necessarySelectorWhenAuto: '.app-wrapper',
4547
}),
4648
],
4749
},

0 commit comments

Comments
 (0)