File tree Expand file tree Collapse file tree 5 files changed +32
-26
lines changed Expand file tree Collapse file tree 5 files changed +32
-26
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import MetricsDisplay from './MetricsDisplay';
7
7
import PatternInfo from './PatternInfo' ;
8
8
import SocialSharePopper from './SocialSharePopper' ;
9
9
import UserInfo from './UserInfo' ;
10
- import { ContentRow , DesignHeading , OverviewContainer } from './style' ;
10
+ import { ContentRow , DesignHeading , OverviewContainer , OverviewContainerHeader } from './style' ;
11
11
import { Class } from './types' ;
12
12
13
13
interface OverviewSectionProps {
@@ -50,15 +50,7 @@ const OverviewSection: React.FC<OverviewSectionProps> = ({
50
50
} ) => {
51
51
return (
52
52
< OverviewContainer >
53
- < div
54
- style = { {
55
- display : 'flex' ,
56
- flexDirection : 'row' ,
57
- width : '100%' ,
58
- flexWrap : 'wrap' ,
59
- fontFamily : fontFamily || 'inherit'
60
- } }
61
- >
53
+ < OverviewContainerHeader >
62
54
< DesignHeading > { details ?. name } </ DesignHeading >
63
55
< SocialSharePopper
64
56
details = { details }
@@ -70,7 +62,7 @@ const OverviewSection: React.FC<OverviewSectionProps> = ({
70
62
showShareAction = { showShareAction }
71
63
handleShare = { handleShare }
72
64
/>
73
- </ div >
65
+ </ OverviewContainerHeader >
74
66
< Grid container spacing = { 2 } >
75
67
< Grid item lg = { 4 } md = { 4 } sm = { 12 } xs = { 12 } >
76
68
< Grid container >
Original file line number Diff line number Diff line change @@ -200,6 +200,18 @@ export const OverviewContainer = styled('div')(({ theme }) => ({
200
200
borderRadius : '0.4rem'
201
201
} ) ) ;
202
202
203
+ export const OverviewContainerHeader = styled ( 'div' ) ( ( { theme } ) => ( {
204
+ display : 'flex' ,
205
+ flexDirection : 'row' ,
206
+ width : '100%' ,
207
+ flexWrap : 'wrap' ,
208
+ fontFamily : 'inherit' ,
209
+
210
+ [ theme . breakpoints . down ( 'sm' ) ] : {
211
+ flexDirection : 'column'
212
+ }
213
+ } ) ) ;
214
+
203
215
export const DesignHeading = styled ( 'h1' ) ( ( { theme } ) => ( {
204
216
textAlign : 'left' ,
205
217
margin : '0rem 0rem 2rem 0rem' ,
Original file line number Diff line number Diff line change @@ -141,7 +141,8 @@ const CatalogFilterSidebar: React.FC<CatalogFilterSidebarProps> = ({
141
141
style = { {
142
142
height : '75vh' ,
143
143
overflowY : 'auto' ,
144
- background : theme . palette . background . surfaces
144
+ background : theme . palette . background . surfaces ,
145
+ padding : '0 16px'
145
146
} }
146
147
>
147
148
< CatalogFilterSidebarState
Original file line number Diff line number Diff line change 9
9
TropyIcon
10
10
} from '../../icons' ;
11
11
import { useTheme } from '../../theme' ;
12
+ import { Carousel } from '../Carousel' ;
12
13
import { Pattern } from '../CustomCatalog/CustomCard' ;
13
14
import { ErrorBoundary } from '../ErrorBoundary' ;
14
15
import { StateCardSekeleton } from './PerformersToogleButton' ;
@@ -284,6 +285,17 @@ const PerformersSection: React.FC<PerformersSectionProps> = ({
284
285
</ MainContainer >
285
286
) ;
286
287
288
+ const statComponents = stats . map ( ( stat , index ) => (
289
+ < StatCard
290
+ key = { `${ stat . id } -${ index } ` }
291
+ { ...stat }
292
+ onCardClick = { onCardClick }
293
+ onIconClick = { onIconClick }
294
+ onAuthorClick = { onAuthorClick }
295
+ onStatusClick = { onStatusClick }
296
+ />
297
+ ) ) ;
298
+
287
299
return (
288
300
< ErrorBoundary >
289
301
< MainContainer >
@@ -299,17 +311,7 @@ const PerformersSection: React.FC<PerformersSectionProps> = ({
299
311
</ Title >
300
312
< CardsContainer >
301
313
{ isLoading && < StateCardSekeleton /> }
302
- { ! isLoading &&
303
- stats . map ( ( stat , index ) => (
304
- < StatCard
305
- key = { `${ stat . id } -${ index } ` }
306
- { ...stat }
307
- onCardClick = { onCardClick }
308
- onIconClick = { onIconClick }
309
- onAuthorClick = { onAuthorClick }
310
- onStatusClick = { onStatusClick }
311
- />
312
- ) ) }
314
+ < Carousel items = { statComponents } />
313
315
</ CardsContainer >
314
316
</ MainContainer >
315
317
</ ErrorBoundary >
Original file line number Diff line number Diff line change @@ -222,10 +222,9 @@ export const UserNameText = styled(Typography)(({ theme }) => ({
222
222
223
223
export const CardsContainer = styled ( Box ) ( ( { theme } ) => ( {
224
224
display : 'flex' ,
225
- gap : '18px ' ,
225
+ gap : '15px ' ,
226
226
width : '100%' ,
227
- overflowX : 'auto' ,
228
- padding : '18px' ,
227
+ padding : '20px' ,
229
228
background :
230
229
theme . palette . mode === 'light'
231
230
? theme . palette . background . default
You can’t perform that action at this time.
0 commit comments