Skip to content

Commit

Permalink
Fix/scrollbar position on publish flow (#606)
Browse files Browse the repository at this point in the history
* fix: fix scrollbar position

* fix: update width

* fix: update media query
  • Loading branch information
KevinRohlf authored Oct 23, 2024
1 parent 3b322b2 commit 9c5e84c
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions src/components/Publish/Navigation/index.module.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
.navigation {
margin: -1.3rem calc(var(--spacer) / -1.5) var(--spacer)
calc(var(--spacer) / -1.5);
padding: calc(var(--spacer) / 2) 0;
scrollbar-width: none;
border-bottom: 1px solid var(--border-color);
background-color: var(--background-highlight);
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}

@media (min-width: 40rem) {
Expand All @@ -15,26 +16,29 @@
}
}

@media (min-width: 60rem) {
.navigation {
padding: var(--spacer) 0;
margin-left: calc(var(--spacer) * -4);
margin-right: calc(var(--spacer) * -4);
}
}

.navigation ol {
white-space: nowrap;
text-align: center;
width: 100%;
padding: 0;
padding: calc(var(--spacer) / 2) 0;
margin: 0;
counter-reset: list-number;
overflow-x: auto;
overflow-x: visible;
overflow-y: hidden;
-webkit-overflow-scrolling: touch;
}

@media (min-width: 60rem) {
.navigation {
margin-left: calc(var(--spacer) * -4);
margin-right: calc(var(--spacer) * -4);
}

.navigation ol {
padding: var(--spacer) 0;
}
}

.navigation li {
cursor: pointer;
display: inline-block;
Expand Down

0 comments on commit 9c5e84c

Please sign in to comment.