Modify label visibility and year display in Scrubber

Change segment.hasLabel to false for the first segment and update displayed year.
This commit is contained in:
Scott Wu 2025-10-16 13:45:13 +08:00 committed by GitHub
parent 9d639607c7
commit 02bc7d2786
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -164,7 +164,7 @@
top += segment.height;
if (i === 0) {
segment.hasDot = true;
segment.hasLabel = true;
segment.hasLabel = false;
previousLabeledSegment = segment;
} else {
if (previousLabeledSegment?.year !== segment.year && height > MIN_YEAR_LABEL_DISTANCE) {
@ -577,7 +577,7 @@
{#if !usingMobileDevice}
{#if segment.hasLabel}
<div class="absolute end-5 top-[-16px] text-[12px] dark:text-immich-dark-fg font-immich-mono">
{segment.year}
{segment.year + 1}
</div>
{/if}
{#if segment.hasDot}