mirror of
				https://github.com/soybeanjs/soybean-admin.git
				synced 2025-11-04 07:43:42 +08:00 
			
		
		
		
	optimize(projects): optimize theme drawer width
This commit is contained in:
		@@ -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>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user