mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-09-17 09:16:37 +08:00
optimize(projects): optimize theme drawer width
This commit is contained in:
parent
8b8a2083bb
commit
8146858b96
@ -15,12 +15,14 @@ const appStore = useAppStore();
|
||||
const activeTab = ref('appearance');
|
||||
|
||||
const drawerWidth = computed(() => {
|
||||
const width = 400;
|
||||
|
||||
// On mobile devices, use 90% of viewport width with a maximum of 400px
|
||||
if (appStore.isMobile) {
|
||||
return 'min(90vw, 400px)';
|
||||
return `min(90vw, ${width}px)`;
|
||||
}
|
||||
|
||||
return 460;
|
||||
return width;
|
||||
});
|
||||
</script>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user