mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
Merge 32cff0d769 into ffc83eae36
This commit is contained in:
commit
efaec2a48b
1 changed files with 21 additions and 1 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue