Skip to content

Commit c41ef95

Browse files
fix: improve devcard scrolling behavior (#258)
1 parent df4e5c6 commit c41ef95

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

apps/web/src/routes/+page.svelte

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,7 @@
101101
}
102102
103103
nav {
104-
position: sticky;
105-
top: 1.25rem;
106-
margin: 0 auto;
104+
margin: 1.25rem auto 0;
107105
width: min(1100px, calc(100% - 2rem));
108106
max-width: 1100px;
109107
border-radius: var(--radius-xl);
@@ -322,7 +320,7 @@
322320
323321
@media (max-width: 860px) {
324322
nav {
325-
top: 0.9rem;
323+
margin-top: 0.9rem;
326324
padding: 0.85rem 1.1rem;
327325
}
328326

0 commit comments

Comments
 (0)