Преглед на файлове

fix(web): scrollbar does not show all years (#4684)

Alex преди 1 година
родител
ревизия
b34cbd881a
променени са 1 файла, в които са добавени 6 реда и са изтрити 8 реда
  1. 6 8
      web/src/lib/components/shared-components/scrollbar/scrollbar.svelte

+ 6 - 8
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}
-            <div
-              aria-label={segment.timeGroup + ' ' + segment.count}
-              class="absolute right-0 z-10 pr-5 text-xs font-medium dark:text-immich-dark-fg"
-            >
-              {year}
-            </div>
-          {/if}
+          <div
+            aria-label={segment.timeGroup + ' ' + segment.count}
+            class="absolute right-0 z-10 pr-5 text-xs font-medium dark:text-immich-dark-fg"
+          >
+            {year}
+          </div>
         {:else if segment.height > 5}
           <div
             aria-label={segment.timeGroup + ' ' + segment.count}