cleanup: remove pins
This commit is contained in:
1 parent
acf92a7647
commit
b3b2397bfa
4 files changed
-67
No files matched your search
@@ -46,10 +46,6 @@
|
||||
let translating = $state(false)
|
||||
</script>
|
||||
|
||||
{#if translating}
|
||||
<Translation bind:open={translating} />
|
||||
{/if}
|
||||
|
||||
<div
|
||||
class="flex flex-row items-center gap-0.5 h-7 w-full"
|
||||
class:flex-row-reverse={settings.posts.reverseActions}
|
||||
|
||||
@@ -36,28 +36,6 @@
|
||||
gap-1 h-fit max-h-screen {clazz}"
|
||||
{style}
|
||||
>
|
||||
{#if settings.dock.pins?.length ?? 0 > 0}
|
||||
<div class="flex items-center flex-wrap gap-2 pl-1.5">
|
||||
{#each settings.dock.pins as pin}
|
||||
<SidebarButton
|
||||
icon={iconOfLink(pin.url)}
|
||||
onclick={() => goto(pin.url)}
|
||||
alignment="center"
|
||||
selected={`${$page.url.pathname}${$page.url.search}` == pin.url}
|
||||
oncontextmenu={(e) => {
|
||||
e.preventDefault()
|
||||
settings.dock.pins = settings.dock.pins.toSpliced(
|
||||
settings.dock.pins.findLastIndex((p) => pin.url == p.url),
|
||||
1,
|
||||
)
|
||||
return false
|
||||
}}
|
||||
size="square-md"
|
||||
></SidebarButton>
|
||||
{/each}
|
||||
</div>
|
||||
<hr class="border-slate-200 dark:border-zinc-900 my-1" />
|
||||
{/if}
|
||||
{#if $profile?.jwt}
|
||||
<SidebarButton icon={UserCircle} href="/profile">
|
||||
{#snippet label()}
|
||||
|
||||
@@ -86,7 +86,6 @@ interface Settings {
|
||||
dock: {
|
||||
noGap: boolean | null
|
||||
top: boolean | null
|
||||
pins: Link[]
|
||||
paletteHotkey: string
|
||||
}
|
||||
posts: {
|
||||
@@ -167,7 +166,6 @@ export const defaultSettings: Settings = {
|
||||
dock: {
|
||||
noGap: toBool(env.PUBLIC_DOCK_PANEL) ?? null,
|
||||
top: toBool(env.PUBLIC_DOCK_TOP) ?? null,
|
||||
pins: [],
|
||||
paletteHotkey: '/',
|
||||
},
|
||||
posts: {
|
||||
|
||||
Reference in new issue
Block a user