From 81c2b152166efe291c394d41c5e01222741afff6 Mon Sep 17 00:00:00 2001 From: Kevin Wu Date: Mon, 27 Jan 2025 14:54:39 -0800 Subject: [PATCH] style: reduce tab size --- .../ScheduleManagement/ScheduleManagementTab.tsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/apps/antalmanac/src/components/ScheduleManagement/ScheduleManagementTab.tsx b/apps/antalmanac/src/components/ScheduleManagement/ScheduleManagementTab.tsx index 0f2d2c256..d392d5f17 100644 --- a/apps/antalmanac/src/components/ScheduleManagement/ScheduleManagementTab.tsx +++ b/apps/antalmanac/src/components/ScheduleManagement/ScheduleManagementTab.tsx @@ -28,15 +28,19 @@ export const ScheduleManagementTab = ({ tab, value }: ScheduleManagementTabProps icon={tab.icon} iconPosition={isMobile ? 'top' : 'start'} sx={{ - ...(!isMobile + ...(isMobile ? { + minHeight: 'unset', + minWidth: '25%', + height: 56, + } + : { minHeight: 'auto', height: '44px', padding: 3, minWidth: '33%', - } - : { minWidth: '25%' }), - display: !isMobile && tab.mobile ? 'none' : 'flex', + }), + display: isMobile || !tab.mobile ? 'flex' : 'none', ...(isDark ? { '&.Mui-selected': { color: 'white' } } : {}), }} label={tab.label}