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;
|
top += segment.height;
|
||||||
if (i === 0) {
|
if (i === 0) {
|
||||||
segment.hasDot = true;
|
segment.hasDot = true;
|
||||||
segment.hasLabel = true;
|
segment.hasLabel = false;
|
||||||
previousLabeledSegment = segment;
|
previousLabeledSegment = segment;
|
||||||
} else {
|
} else {
|
||||||
if (previousLabeledSegment?.year !== segment.year && height > MIN_YEAR_LABEL_DISTANCE) {
|
if (previousLabeledSegment?.year !== segment.year && height > MIN_YEAR_LABEL_DISTANCE) {
|
||||||
|
|
@ -577,7 +577,7 @@
|
||||||
{#if !usingMobileDevice}
|
{#if !usingMobileDevice}
|
||||||
{#if segment.hasLabel}
|
{#if segment.hasLabel}
|
||||||
<div class="absolute end-5 top-[-16px] text-[12px] dark:text-immich-dark-fg font-immich-mono">
|
<div class="absolute end-5 top-[-16px] text-[12px] dark:text-immich-dark-fg font-immich-mono">
|
||||||
{segment.year}
|
{segment.year + 1}
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
{#if segment.hasDot}
|
{#if segment.hasDot}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue