Skip to content

Commit

Permalink
Prevented layout shift in navbar when scrollbar appears. (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
h3nryc0ding authored Jan 7, 2024
1 parent b3d0bda commit 771f449
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/lib/SiteHeader.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</script>

<header
class="supports-backdrop-blur:bg-background/60 sticky top-0 z-40 w-full border-b bg-background/95 shadow-sm backdrop-blur"
class="sticky top-0 z-50 w-full border-b bg-background/95 shadow-sm backdrop-blur supports-[backdrop-filter]:bg-background/60"
>
<div class="container flex h-14 items-center">
<nav class="flex items-center space-x-6 text-sm font-medium">
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/routes/chat/+layout.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<div class="container">
<slot />
</div>

0 comments on commit 771f449

Please sign in to comment.