-
-
Notifications
You must be signed in to change notification settings - Fork 44
fix: add persistent desktop navigation #108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -60,51 +60,62 @@ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <!-- TODO: Restore gestures --> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <template> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <div class="relative flex h-full flex-col"> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <!-- Background --> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <div | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| aria-hidden="true" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| class="absolute inset-x-0 -z-10 flex transform-gpu justify-center blur-xl md:blur-3xl" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <div | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| class="from-primary-300 to-accent-700 aspect-1108/632 w-full flex-none bg-linear-to-l opacity-25" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| style=" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| clip-path: polygon( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 100% 0%, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 100% 82.2%, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 92.5% 84.9%, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 75.7% 64%, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 70.64% 73.45%, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 56.7% 36.26%, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 46.53% 47.55%, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 0% 0% | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| " | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <div class="relative flex flex-col"> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <div class="flex flex-row"> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <!-- Desktop Sidebar (Visible only on lg+) --> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <aside class="bg-base-1000 border-base-0/10 hidden w-64 shrink-0 flex-col border-r lg:sticky lg:top-0 lg:flex lg:h-screen lg:overflow-y-auto"> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <div class="flex flex-1 flex-col px-6"> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <LazySidebar /> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </aside> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <div class="relative flex min-w-0 flex-1 flex-col"> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <!-- Background --> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <div | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| aria-hidden="true" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| class="absolute inset-x-0 -z-10 flex transform-gpu justify-center blur-xl md:blur-3xl" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <div | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| class="from-primary-300 to-accent-700 aspect-1108/632 w-full flex-none bg-linear-to-l opacity-25" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| style=" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| clip-path: polygon( | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 100% 0%, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 100% 82.2%, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 92.5% 84.9%, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 75.7% 64%, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 70.64% 73.45%, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 56.7% 36.26%, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 46.53% 47.55%, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 0% 0% | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| " | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <!-- TODO: Restore when needed --> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <!-- <PwaUpdater />--> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <ClientOnly> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <Toaster | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| :expand="true" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| close-button | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| position="top-center" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| theme="dark" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <DialogManager /> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </ClientOnly> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <SidebarWrapper> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <LazySidebar /> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </SidebarWrapper> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <Navbar /> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+98
to
+113
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Render fixed overlays above the navbar. Lines 98-113 place 🛠️ Suggested fix- <ClientOnly>
- <Toaster
- :expand="true"
- close-button
- position="top-center"
- theme="dark"
- />
-
- <DialogManager />
- </ClientOnly>
-
- <SidebarWrapper>
- <LazySidebar />
- </SidebarWrapper>
-
<Navbar />
+
+ <ClientOnly>
+ <Toaster
+ :expand="true"
+ close-button
+ position="top-center"
+ theme="dark"
+ />
+
+ <DialogManager />
+ </ClientOnly>
+
+ <SidebarWrapper>
+ <LazySidebar />
+ </SidebarWrapper>📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <!-- Layout content --> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <!-- Use `flex-1` to take all remaining space --> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <slot /> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <!-- TODO: Restore when needed --> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <!-- <PwaUpdater />--> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <ClientOnly> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <Toaster | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| :expand="true" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| close-button | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| position="top-center" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| theme="dark" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <DialogManager /> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </ClientOnly> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <SidebarWrapper> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <LazySidebar /> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </SidebarWrapper> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <Navbar /> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <!-- Layout content --> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <!-- Use `flex-1` to take all remaining space --> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| <slot /> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </div> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| </template> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧹 Nitpick | 🔵 Trivial
De-duplicate the desktop sidebar offset.
Line 49 hard-codes
lg:left-64, whilelayouts/default.vueLine 66 hard-codes the sidebar asw-64. Keeping those values in separate files will silently misalign the posts navbar the next time the sidebar width changes. Consider sourcing both from the same layout token/CSS variable.🤖 Prompt for AI Agents