Skip to content

Commit 8146858

Browse files
committed
optimize(projects): optimize theme drawer width
1 parent 8b8a208 commit 8146858

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/layouts/modules/theme-drawer/index.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@ const appStore = useAppStore();
1515
const activeTab = ref('appearance');
1616
1717
const drawerWidth = computed(() => {
18+
const width = 400;
19+
1820
// On mobile devices, use 90% of viewport width with a maximum of 400px
1921
if (appStore.isMobile) {
20-
return 'min(90vw, 400px)';
22+
return `min(90vw, ${width}px)`;
2123
}
2224
23-
return 460;
25+
return width;
2426
});
2527
</script>
2628

0 commit comments

Comments
 (0)