-
Notifications
You must be signed in to change notification settings - Fork 315
Adding logo. Different in light and dark mode #293
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
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 | ||||
|---|---|---|---|---|---|---|
| @@ -1,13 +1,13 @@ | ||||||
| <script lang="ts"> | ||||||
| import * as Sidebar from '$lib/components/ui/sidebar/index.js'; | ||||||
| import { siteConfig } from '$lib/config'; | ||||||
| import GalleryVerticalEnd from 'lucide-svelte/icons/gallery-vertical-end'; | ||||||
| import type { ComponentProps } from 'svelte'; | ||||||
| let { ref = $bindable(null), ...restProps }: ComponentProps<typeof Sidebar.Root> = $props(); | ||||||
| import { docsNavigation } from '$lib/components/doc-navigation.svelte'; | ||||||
| import { page } from '$app/state'; | ||||||
| import SocialMedia from './social-media.svelte'; | ||||||
| const path = $derived(page.url.pathname); | ||||||
| const compactLogo = siteConfig.logoMark ?? siteConfig.logo; | ||||||
| </script> | ||||||
|
|
||||||
| <Sidebar.Root bind:ref {...restProps}> | ||||||
|
|
@@ -20,7 +20,11 @@ | |||||
| <div | ||||||
| class="flex aspect-square size-8 items-center justify-center rounded-lg bg-sidebar-primary text-sidebar-primary-foreground" | ||||||
| > | ||||||
| <GalleryVerticalEnd class="size-4" /> | ||||||
| <img | ||||||
| src={compactLogo} | ||||||
| alt="Foundry Local logo" | ||||||
| class="h-5 w-5" | ||||||
|
||||||
| class="h-5 w-5" | |
| class="h-5 w-auto" |
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] The
ComponentPropsimport should be moved above the component imports to maintain the conventional import ordering: types first, then external libraries, then internal modules, then components.