1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-26 10:50:29 +02:00

chore: flip album icon (#2300)

This commit is contained in:
Jason Rasmussen 2023-04-20 14:23:03 -04:00 committed by GitHub
parent fe3d6b870a
commit b423852fad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -7,6 +7,7 @@
export let title: string; export let title: string;
export let logo: typeof Icon; export let logo: typeof Icon;
export let isSelected: boolean; export let isSelected: boolean;
export let flippedLogo = false;
let showMoreInformation = false; let showMoreInformation = false;
@ -25,7 +26,11 @@
" "
> >
<div class="flex gap-4 place-items-center w-full overflow-hidden truncate"> <div class="flex gap-4 place-items-center w-full overflow-hidden truncate">
<svelte:component this={logo} size="1.5em" class="shrink-0" /> <svelte:component
this={logo}
size="1.5em"
class="shrink-0 {flippedLogo ? '-scale-x-100' : ''}"
/>
<p class="font-medium text-sm">{title}</p> <p class="font-medium text-sm">{title}</p>
</div> </div>

View File

@ -151,6 +151,7 @@
<SideBarButton <SideBarButton
title="Albums" title="Albums"
logo={ImageAlbum} logo={ImageAlbum}
flippedLogo={true}
isSelected={$page.route.id === '/(user)/albums'} isSelected={$page.route.id === '/(user)/albums'}
> >
<svelte:fragment slot="moreInformation"> <svelte:fragment slot="moreInformation">