Skip to content

Commit 9d76dcb

Browse files
committed
chore: replace vw units with vmin
1 parent f2e158f commit 9d76dcb

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

src/styles/dark.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,4 @@ import { Themes } from '@varlet/ui'
22

33
export const darkTheme = Themes.toViewport({
44
...Themes.md3Dark,
5-
}, {
6-
viewportUnit: 'vw',
75
})

src/styles/light.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,4 @@ import { Themes } from '@varlet/ui'
22

33
export const lightTheme = Themes.toViewport({
44
...Themes.md3Light,
5-
}, {
6-
viewportUnit: 'vw',
75
})

vite.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ export default ({ mode }: ConfigEnv): UserConfig => {
4343
viewport({
4444
unitPrecision: 6,
4545
viewportWidth: 375,
46+
mobileUnit: 'vmin',
47+
exclude: /vue-devtools/,
4648
}),
4749
],
4850
},

0 commit comments

Comments
 (0)