From b34cbd881ae87f84cd67a6f40995bf4f8bb3fbd2 Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 28 Oct 2023 20:31:33 -0500 Subject: [PATCH] fix(web): scrollbar does not show all years (#4684) --- .../shared-components/scrollbar/scrollbar.svelte | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/web/src/lib/components/shared-components/scrollbar/scrollbar.svelte b/web/src/lib/components/shared-components/scrollbar/scrollbar.svelte index da028f686e..750b3247ba 100644 --- a/web/src/lib/components/shared-components/scrollbar/scrollbar.svelte +++ b/web/src/lib/components/shared-components/scrollbar/scrollbar.svelte @@ -106,14 +106,12 @@ on:mousemove={() => (hoverLabel = label)} > {#if new Date(segments[index - 1]?.timeGroup).getFullYear() !== year} - {#if segment.height > 8} -
- {year} -
- {/if} +
+ {year} +
{:else if segment.height > 5}