Fix carousel mobile (#7729)

Do not show in changelog
This commit is contained in:
Clément Pasteau
2025-07-17 15:49:36 +02:00
committed by GitHub
parent a4908a4d42
commit 1f41749fa3

View File

@@ -50,11 +50,6 @@ const styles = {
overflowX: 'scroll',
overflowY: 'hidden',
flexWrap: 'nowrap',
scrollbarWidth: 'none' /* For modern browsers */,
msOverflowStyle: 'none' /* For Internet Explorer and Edge */,
'&::-webkit-scrollbar': {
height: 0 /* For old hrome, Safari, and Opera */,
},
},
container: { display: 'flex', position: 'relative', width: '100%' },
arrowsContainer: {
@@ -182,7 +177,7 @@ const Carousel = ({ items }: Props) => {
<div
style={{
...styles.arrowsContainer,
display: isMobile ? 'hidden' : 'flex',
display: isMobile ? 'none' : 'flex',
opacity: isHoveringContainer ? 1 : 0,
}}
>
@@ -212,6 +207,7 @@ const Carousel = ({ items }: Props) => {
</div>
</div>
<GridList
className="almost-invisible-scrollbar"
cols={actualColumnsToDisplay}
style={styles.gridList}
cellHeight="auto"