Skip to content

Commit 1f41749

Browse files
Fix carousel mobile (#7729)
Do not show in changelog
1 parent a4908a4 commit 1f41749

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

newIDE/app/src/UI/Carousel.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,6 @@ const styles = {
5050
overflowX: 'scroll',
5151
overflowY: 'hidden',
5252
flexWrap: 'nowrap',
53-
scrollbarWidth: 'none' /* For modern browsers */,
54-
msOverflowStyle: 'none' /* For Internet Explorer and Edge */,
55-
'&::-webkit-scrollbar': {
56-
height: 0 /* For old hrome, Safari, and Opera */,
57-
},
5853
},
5954
container: { display: 'flex', position: 'relative', width: '100%' },
6055
arrowsContainer: {
@@ -182,7 +177,7 @@ const Carousel = ({ items }: Props) => {
182177
<div
183178
style={{
184179
...styles.arrowsContainer,
185-
display: isMobile ? 'hidden' : 'flex',
180+
display: isMobile ? 'none' : 'flex',
186181
opacity: isHoveringContainer ? 1 : 0,
187182
}}
188183
>
@@ -212,6 +207,7 @@ const Carousel = ({ items }: Props) => {
212207
</div>
213208
</div>
214209
<GridList
210+
className="almost-invisible-scrollbar"
215211
cols={actualColumnsToDisplay}
216212
style={styles.gridList}
217213
cellHeight="auto"

0 commit comments

Comments
 (0)