diff --git a/src/lib/components/ui/layout/Shell.svelte b/src/lib/components/ui/layout/Shell.svelte index 4320c887..81810daa 100644 --- a/src/lib/components/ui/layout/Shell.svelte +++ b/src/lib/components/ui/layout/Shell.svelte @@ -63,7 +63,7 @@ $: contentPadding = calculatePadding(dockProps.noGap, dockProps.top, true) $: sidePadding = calculatePadding(dockProps.noGap, dockProps.top, false) - $: topPanel = $userSettings.dock.noGap && $userSettings.dock.top + $: topPanel = dockProps.noGap && dockProps.top diff --git a/src/lib/components/ui/navbar/link.ts b/src/lib/components/ui/navbar/link.ts index 506861a7..30dc1e94 100644 --- a/src/lib/components/ui/navbar/link.ts +++ b/src/lib/components/ui/navbar/link.ts @@ -12,6 +12,7 @@ import { ShieldCheck, ServerStack, PencilSquare, + MapPin, } from 'svelte-hero-icons' import { get } from 'svelte/store' @@ -21,10 +22,6 @@ export interface Link { } export const defaultLinks: Link[] = [ - { - url: '/profile', - label: get(t)('profile.profile'), - }, { url: '/', label: t.get('nav.home'), @@ -69,16 +66,14 @@ export const defaultLinks: Link[] = [ export const iconOfLink = (url: string): IconSource => { switch (url) { - case '/profile': - return UserCircle case '/': return Home case '/?type=All': - return ChartBar + return GlobeAmericas case '/?type=Subscribed': return Newspaper case '/?type=Local': - return GlobeAmericas + return MapPin case '/communities': return GlobeAlt case '/search': diff --git a/src/lib/components/ui/sidebar/Sidebar.svelte b/src/lib/components/ui/sidebar/Sidebar.svelte index d33decd3..1f9c82c6 100644 --- a/src/lib/components/ui/sidebar/Sidebar.svelte +++ b/src/lib/components/ui/sidebar/Sidebar.svelte @@ -31,18 +31,6 @@ import { iconOfLink } from '../navbar/link' import { goto } from '$app/navigation' import { page } from '$app/stores' - - function pinsEvent(node: HTMLElement) { - node.oncontextmenu = (e) => { - e.preventDefault() - console.log('test') - // $userSettings.dock.pins = $userSettings.dock.pins.splice( - // $userSettings.dock.pins.findIndex((p) => pin.url == p.url), - // 1 - // ) - return false - } - }