From 8086e10e32d1686ef2bc3613dddd785bb6dc9e79 Mon Sep 17 00:00:00 2001 From: Kevin Wu Date: Mon, 23 Oct 2023 00:59:11 -0700 Subject: [PATCH] fix: CSS Cleanup (#752) Co-authored-by: Eric Pedley --- .../src/components/Calendar/CalendarRoot.tsx | 2 +- .../src/components/Calendar/CalendarToolbar.tsx | 9 ++++++++- .../RightPane/AddedCourses/AddedCoursePane.tsx | 2 +- .../components/RightPane/CoursePane/CoursePaneRoot.tsx | 2 +- .../RightPane/CoursePane/CourseRenderPane.tsx | 1 + .../src/components/RightPane/RightPaneRoot.tsx | 10 +++++----- .../components/RightPane/SectionTable/SectionTable.tsx | 4 ++-- 7 files changed, 19 insertions(+), 11 deletions(-) diff --git a/apps/antalmanac/src/components/Calendar/CalendarRoot.tsx b/apps/antalmanac/src/components/Calendar/CalendarRoot.tsx index 7d763dabf..bd3b20ae3 100644 --- a/apps/antalmanac/src/components/Calendar/CalendarRoot.tsx +++ b/apps/antalmanac/src/components/Calendar/CalendarRoot.tsx @@ -36,7 +36,7 @@ CalendarRoot const styles: Styles = { container: { - margin: '0px 4px 4px 4px', + margin: '0px 4px', borderRadius: '1px', }, firstLineContainer: { diff --git a/apps/antalmanac/src/components/Calendar/CalendarToolbar.tsx b/apps/antalmanac/src/components/Calendar/CalendarToolbar.tsx index e7184b732..b30a2a4db 100644 --- a/apps/antalmanac/src/components/Calendar/CalendarToolbar.tsx +++ b/apps/antalmanac/src/components/Calendar/CalendarToolbar.tsx @@ -273,7 +273,14 @@ function CalendarPaneToolbar(props: CalendarPaneToolbarProps) { diff --git a/apps/antalmanac/src/components/RightPane/AddedCourses/AddedCoursePane.tsx b/apps/antalmanac/src/components/RightPane/AddedCourses/AddedCoursePane.tsx index 0981b0d82..bebb71fce 100644 --- a/apps/antalmanac/src/components/RightPane/AddedCourses/AddedCoursePane.tsx +++ b/apps/antalmanac/src/components/RightPane/AddedCourses/AddedCoursePane.tsx @@ -375,5 +375,5 @@ export default function AddedCoursePaneFunctionComponent() { }; }, []); - return {skeletonMode ? : }; + return {skeletonMode ? : }; } diff --git a/apps/antalmanac/src/components/RightPane/CoursePane/CoursePaneRoot.tsx b/apps/antalmanac/src/components/RightPane/CoursePane/CoursePaneRoot.tsx index f953dda83..ddd4adc6d 100644 --- a/apps/antalmanac/src/components/RightPane/CoursePane/CoursePaneRoot.tsx +++ b/apps/antalmanac/src/components/RightPane/CoursePane/CoursePaneRoot.tsx @@ -57,7 +57,7 @@ function RightPane() { }, []); return ( -
+
{ const [bannerVisibility, setBannerVisibility] = React.useState(true); diff --git a/apps/antalmanac/src/components/RightPane/RightPaneRoot.tsx b/apps/antalmanac/src/components/RightPane/RightPaneRoot.tsx index a87d1a61b..5b666f5b7 100644 --- a/apps/antalmanac/src/components/RightPane/RightPaneRoot.tsx +++ b/apps/antalmanac/src/components/RightPane/RightPaneRoot.tsx @@ -48,8 +48,8 @@ export default function Desktop({ style }: DesktopTabsProps) { const { activeTab, setActiveTab } = useTabStore(); return ( -
- + + setActiveTab(value)} @@ -69,12 +69,12 @@ export default function Desktop({ style }: DesktopTabsProps) {
} to={tab.href} - style={{ minHeight: 'auto', height: '44px', padding: 3 }} + style={{ minHeight: 'auto', height: '44px', padding: 3, minWidth: '33%' }} /> ))} - + {activeTab === 0 && } {activeTab === 1 && } {activeTab === 2 && ( @@ -89,6 +89,6 @@ export default function Desktop({ style }: DesktopTabsProps) { )} -
+ ); } diff --git a/apps/antalmanac/src/components/RightPane/SectionTable/SectionTable.tsx b/apps/antalmanac/src/components/RightPane/SectionTable/SectionTable.tsx index c9e2dd9fd..9905c3f8e 100644 --- a/apps/antalmanac/src/components/RightPane/SectionTable/SectionTable.tsx +++ b/apps/antalmanac/src/components/RightPane/SectionTable/SectionTable.tsx @@ -13,6 +13,7 @@ import { useMediaQuery, } from '@material-ui/core'; import { Assessment, Help, RateReview, ShowChart as ShowChartIcon } from '@material-ui/icons'; +import { GlobalStyles } from '@mui/material'; import { MOBILE_BREAKPOINT } from '../../../globals'; import CourseInfoBar from './CourseInfoBar'; import CourseInfoButton from './CourseInfoButton'; @@ -21,7 +22,6 @@ import { SectionTableProps } from './SectionTable.types'; import SectionTableBody from './SectionTableBody'; import useColumnStore, { SECTION_TABLE_COLUMNS, type SectionTableColumn } from '$stores/ColumnStore'; import analyticsEnum from '$lib/analytics'; -import { GlobalStyles } from '@mui/material'; const TOTAL_NUM_COLUMNS = SECTION_TABLE_COLUMNS.length; @@ -128,7 +128,7 @@ function SectionTable(props: SectionTableProps) { return ( <> - +