Skip to content

Commit

Permalink
fix(web): fix logo size on shared pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Snowknight26 committed May 9, 2024
1 parent f340786 commit 17bfc2d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion web/src/lib/components/album-page/album-viewer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
export let user: UserResponseDto | undefined = undefined;
const album = sharedLink.album as AlbumResponseDto;
let innerWidth: number;
let { isViewing: showAssetViewer } = assetViewingStore;
Expand All @@ -47,6 +48,7 @@
}
},
}}
bind:innerWidth
/>

<header>
Expand All @@ -65,7 +67,7 @@
<ControlAppBar showBackButton={false}>
<svelte:fragment slot="leading">
<a data-sveltekit-preload-data="hover" class="ml-4" href="/">
<ImmichLogo class="h-10" />
<ImmichLogo class="h-[24px] w-[24px] max-w-none md:w-auto md:h-10 md:max-w-full" noText={innerWidth < 768} />
</a>
</svelte:fragment>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
const viewport: Viewport = { width: 0, height: 0 };
let selectedAssets: Set<AssetResponseDto> = new Set();
let innerWidth: number;
$: assets = sharedLink.assets;
$: isMultiSelectionMode = selectedAssets.size > 0;
Expand Down Expand Up @@ -68,6 +69,8 @@
};
</script>

<svelte:window bind:innerWidth />

<section class="bg-immich-bg dark:bg-immich-dark-bg">
{#if isMultiSelectionMode}
<AssetSelectControlBar assets={selectedAssets} clearSelect={() => (selectedAssets = new Set())}>
Expand All @@ -83,7 +86,7 @@
<ControlAppBar on:close={() => goto(AppRoute.PHOTOS)} backIcon={mdiArrowLeft} showBackButton={false}>
<svelte:fragment slot="leading">
<a data-sveltekit-preload-data="hover" class="ml-4" href="/">
<ImmichLogo class="h-10" />
<ImmichLogo class="h-[24px] w-[24px] max-w-none md:w-auto md:h-10 md:max-w-full" noText={innerWidth < 768} />
</a>
</svelte:fragment>

Expand Down

0 comments on commit 17bfc2d

Please sign in to comment.