Skip to content

Commit bf2512e

Browse files
authored
Merge pull request #828 from amitamrutiya/update-performer
Change the width of the scrollbar for catalog modal
2 parents f90d63a + 1945e7e commit bf2512e

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

src/custom/CatalogFilterSection/FilterSection.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,10 @@ const FilterSection: React.FC<FilterSectionProps> = ({
7676
sx={{
7777
overflowY: 'auto',
7878
maxHeight: '25rem',
79-
backgroundColor: styleProps.backgroundColor
79+
backgroundColor: styleProps.backgroundColor,
80+
'&::-webkit-scrollbar': {
81+
width: '6px'
82+
}
8083
}}
8184
>
8285
{showSearch && (

src/custom/CatalogFilterSection/style.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ export const FiltersCardDiv = styled(Box)<{ styleProps: StyleProps }>(({ stylePr
1616
['@media (max-width:900px)']: {
1717
display: 'none'
1818
},
19-
fontFamily: styleProps.fontFamily
19+
fontFamily: styleProps.fontFamily,
20+
'&::-webkit-scrollbar': {
21+
width: '6px'
22+
}
2023
}));
2124

2225
export const FilterDrawerDiv = styled('div')(() => ({

src/custom/PerformersSection/styles.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ export const MainContainer = styled(Box)(({ theme }) => ({
7373
: theme.palette.background.secondary,
7474
paddingTop: theme.spacing(2),
7575
borderRadius: '1rem',
76-
marginBottom: theme.spacing(4),
7776
display: 'flex',
7877
alignItems: 'center',
7978
flexDirection: 'column'
@@ -181,7 +180,7 @@ export const StatsValue = styled(Typography)(({ theme }) => ({
181180
}));
182181

183182
export const RepoSection = styled(Box)(({ theme }) => ({
184-
marginBlock: '.35rem',
183+
marginBottom: '1rem',
185184
padding: '8px',
186185
borderRadius: '8px',
187186
background: theme.palette.mode === 'light' ? '#f8fafc' : DARK_TEAL,
@@ -203,7 +202,8 @@ export const RepoTitle = styled(Typography)(({ theme }) => ({
203202
WebkitBoxOrient: 'vertical',
204203
overflow: 'hidden',
205204
textOverflow: 'ellipsis',
206-
height: '2.6em'
205+
minHeight: 'fit-content',
206+
maxHeight: '2.6em'
207207
}));
208208

209209
export const UserNameText = styled(Typography)(({ theme }) => ({

0 commit comments

Comments
 (0)