Skip to content

Commit 77843f7

Browse files
committed
rename horizontal scroll class name
1 parent eea367d commit 77843f7

2 files changed

Lines changed: 16 additions & 2 deletions

File tree

src/assets/App.css

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
html {
44
background: var(--background-color);
5+
scroll-behavior: smooth;
56
}
67
body {
78
color: var(--primary-text-color);
@@ -94,9 +95,19 @@ a {
9495
gap: 12px;
9596
padding: 1%;
9697
position: relative;
97-
overflow:hidden;
98+
overflow-y:hidden;
9899
padding-bottom: 12px;
100+
scroll-snap-type: x mandatory;
99101
}
102+
103+
.HorizontalScroll {
104+
-ms-overflow-style: none;
105+
scrollbar-width: none;
106+
}
107+
.HorizontalScroll::-webkit-scrollbar {
108+
display: none;
109+
}
110+
100111
.extras {
101112

102113
flex-direction: row;
@@ -189,13 +200,15 @@ a {
189200
height: 78vh;
190201
width: 10vw;
191202
flex: 0 0 auto;
203+
scroll-snap-align: start;
192204
}
193205
.blockContent {
194206
flex-grow: 1;
195207
overflow-y: auto;
196208
display: flex;
197209
flex-direction: column;
198210
overflow-x: hidden;
211+
scroll-snap-type: y mandatory;
199212
height: calc(80vh - 1% - 46px);
200213
}
201214

@@ -263,6 +276,7 @@ a {
263276
}
264277

265278
.blockRow {
279+
scroll-snap-align: start;
266280
padding: 8px 16px;
267281
position: relative;
268282
}

src/components/Layout/AppContentLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const AppContentLayout = ({
1515

1616
return (
1717
<>
18-
<main className="AppContent scrollable">
18+
<main className="AppContent HorizontalScroll">
1919
{isDesktop ? <DesktopCards cards={cards} /> : <MobileCards selectedCard={selectedCard} />}
2020
</main>
2121

0 commit comments

Comments
 (0)