This commit is contained in:
João Ferreira 2026-08-15 14:06:18 +02:00 committed by GitHub
commit efaec2a48b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -45,6 +45,10 @@
});
const { Cast } = $derived(getGlobalActions($t));
const preventLogoDrag = (node: HTMLElement) => {
node.querySelector('img')?.setAttribute('draggable', 'false');
};
</script>
<svelte:window bind:innerWidth />
@ -76,7 +80,13 @@
}}
class="sidebar:hidden"
/>
<a data-sveltekit-preload-data="hover" href={Route.photos()}>
<a
data-sveltekit-preload-data="hover"
href={Route.photos()}
draggable="false"
class="logo-link"
use:preventLogoDrag
>
<Logo variant={mediaQueryManager.isFullSidebar ? 'inline' : 'icon'} class="max-md:h-12" />
</a>
</div>
@ -185,3 +195,13 @@
</div>
</div>
</nav>
<style>
.logo-link,
.logo-link :global(img) {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
</style>