From bc87d064de82d208ed1c83bece32bc5f752c4288 Mon Sep 17 00:00:00 2001 From: "immich-push-o-matic[bot]" <179150890+immich-push-o-matic[bot]@users.noreply.github.com> Date: Tue, 6 Oct 2026 13:32:50 +0000 Subject: [PATCH] chore: milder birthday memory text (#32163) chore: milder birthday memory text (#32124) * chore: better birthday memories style * chore: flame animation * multicolor cake (cherry picked from commit 22a5af0ee90179ba57cae11b60fdcb926282b338) Co-authored-by: Alex --- .../memories/BirthdayConfetti.svelte | 10 ++++- .../lib/components/memories/MemoryCard.svelte | 43 +++++++++++++++++-- 2 files changed, 47 insertions(+), 6 deletions(-) diff --git a/web/src/lib/components/memories/BirthdayConfetti.svelte b/web/src/lib/components/memories/BirthdayConfetti.svelte index 851babc13..8dcc12849 100644 --- a/web/src/lib/components/memories/BirthdayConfetti.svelte +++ b/web/src/lib/components/memories/BirthdayConfetti.svelte @@ -2,7 +2,7 @@ import type { ComponentProps } from 'svelte'; import { Confetti } from 'svelte-confetti'; - const props: ComponentProps = $props(); + const { amount = 50, ...props }: ComponentProps = $props(); const colorArray = [ 'var(--color-logo-red)', @@ -11,6 +11,12 @@ 'var(--color-logo-blue)', 'var(--color-logo-green)', ]; + + // lib supports one shape per instance + const shapes = [{ rounded: false }, { rounded: true }]; + const amountPerShape = $derived(Math.round(amount / shapes.length)); - +{#each shapes as shape, i (i)} + +{/each} diff --git a/web/src/lib/components/memories/MemoryCard.svelte b/web/src/lib/components/memories/MemoryCard.svelte index 8c92afaed..bbe62cb18 100644 --- a/web/src/lib/components/memories/MemoryCard.svelte +++ b/web/src/lib/components/memories/MemoryCard.svelte @@ -16,10 +16,12 @@ const isBirthday = $derived(item.type === MemoryType.Birthday); let confettiCount = $state(0); + + const [flamePath, bottomLayerPath, topLayerPath] = mdiCakeVariant.split(/(?=M)/, 3); isBirthday && confettiCount++} > @@ -32,10 +34,25 @@
-

+

{#if isBirthday} - + + + + + {#key confettiCount} {#if confettiCount > 0} @@ -51,9 +68,27 @@ {/if} {/key} - {item.title} + {item.title} {:else} {item.title} {/if}

+ +