From 1c64187bacdbc7e190d3854e64cfb24fdc87477a Mon Sep 17 00:00:00 2001 From: oppiliappan Date: Mon, 26 Oct 2026 17:35:00 +0000 Subject: [PATCH] web/profile: show the vouch badge only after it loads and scale it in Signed-off-by: oppiliappan --- web/.storybook/VouchArrivalReplay.svelte | 23 +++++++++++++++++++ .../profile/VouchAvatar.stories.svelte | 22 ++++++++++++++++-- .../lib/components/profile/VouchAvatar.svelte | 18 +++++++++------ 3 files changed, 54 insertions(+), 9 deletions(-) create mode 100644 web/.storybook/VouchArrivalReplay.svelte diff --git a/web/.storybook/VouchArrivalReplay.svelte b/web/.storybook/VouchArrivalReplay.svelte new file mode 100644 index 000000000..014f47ecb --- /dev/null +++ b/web/.storybook/VouchArrivalReplay.svelte @@ -0,0 +1,23 @@ + + +{@render children({ preview })} diff --git a/web/src/lib/components/profile/VouchAvatar.stories.svelte b/web/src/lib/components/profile/VouchAvatar.stories.svelte index c07b5bb4b..ad2ea0e85 100644 --- a/web/src/lib/components/profile/VouchAvatar.stories.svelte +++ b/web/src/lib/components/profile/VouchAvatar.stories.svelte @@ -1,6 +1,7 @@ - {#if badge.loading} - - {:else if shown} + {#if shown} {@const Icon = shown[0]} -- 2.54.0