mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
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:
parent
9d639607c7
commit
02bc7d2786
1 changed files with 2 additions and 2 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue