Skip to content

Commit 9e0fc1a

Browse files
committed
fix: padding issue
1 parent 3f9d97c commit 9e0fc1a

3 files changed

Lines changed: 11 additions & 9 deletions

File tree

src/assets/App.css

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,16 +90,19 @@ a {
9090
}
9191

9292
.AppContent {
93+
position: relative;
94+
overflow-y: hidden;
95+
padding-bottom: 12px;
96+
}
97+
.Cards {
98+
padding: 1%;
9399
flex: 1 1 auto;
94100
display: flex;
95101
gap: 12px;
96-
padding: 1%;
97102
position: relative;
98103
overflow-y: hidden;
99-
padding-bottom: 12px;
100104
scroll-snap-type: x mandatory;
101105
}
102-
103106
.HorizontalScroll {
104107
-ms-overflow-style: none;
105108
scrollbar-width: none;
@@ -699,10 +702,6 @@ Producthunt item
699702
font-size: 14px;
700703
}
701704

702-
.test3 {
703-
flex-direction: column;
704-
}
705-
706705
.bottomNavigation {
707706
display: none;
708707
flex-grow: 1;
@@ -723,6 +722,9 @@ Producthunt item
723722
height: 100%;
724723
line-height: 56px;
725724
font-size: 24px;
725+
margin: 0;
726+
border: none;
727+
background: none;
726728
}
727729
.navigationItem img {
728730
width: 18px;

src/components/Layout/DesktopCards.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const DesktopCards = ({
2323
<SortableList
2424
as="div"
2525
onSortEnd={onSortEnd}
26-
className="AppContent HorizontalScroll"
26+
className="Cards HorizontalScroll"
2727
draggedItemClassName="draggedBlock">
2828
{cards
2929
.sort((a, b) => a.id - b.id)

src/components/Layout/ScrollCardsNavigator.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const ScrollCardsNavigator = () => {
3131
}, [])
3232

3333
useLayoutEffect(() => {
34-
scrollBarContainer.current = document.querySelector('.AppContent div')
34+
scrollBarContainer.current = document.querySelector('.Cards')
3535
}, [])
3636

3737
useEffect(() => {

0 commit comments

Comments
 (0)