Skip to content

Commit

Permalink
Thinner section table scroll bar (#738)
Browse files Browse the repository at this point in the history
  • Loading branch information
MinhxNguyen7 authored Oct 16, 2023
1 parent 223238f commit 0617b46
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ 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;

Expand Down Expand Up @@ -104,7 +105,7 @@ function EnrollmentColumnHeader(props: EnrollmentColumnHeaderProps) {
function SectionTable(props: SectionTableProps) {
const { courseDetails, term, allowHighlight, scheduleNames, analyticsCategory } = props;

const [selectedColumns, activeColumns] = useColumnStore((store) => [store.selectedColumns, store.activeColumns]);
const [activeColumns] = useColumnStore((store) => [store.activeColumns]);

const isMobileScreen = useMediaQuery(`(max-width: ${MOBILE_BREAKPOINT})`);

Expand All @@ -127,6 +128,7 @@ function SectionTable(props: SectionTableProps) {

return (
<>
<GlobalStyles styles={{'*::-webkit-scrollbar': {height: '8px'}}}/>
<Box style={{ display: 'flex', gap: 4, marginTop: 4, marginBottom: 8 }}>
<CourseInfoBar
deptCode={courseDetails.deptCode}
Expand Down

0 comments on commit 0617b46

Please sign in to comment.