mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
fix(web): timeline date group width (#19964)
Fix the calculation for the date group width, so there's never a scenario where photos will be hidden. On mobile devices, photos in the second row can sometimes have a top of <100px, which throws off the calculation of the date group width.
This commit is contained in:
parent
4ea4ee40af
commit
baadf9db20
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ class Adapter {
|
||||||
this.result = result;
|
this.result = result;
|
||||||
this.width = 0;
|
this.width = 0;
|
||||||
for (const box of this.result.boxes) {
|
for (const box of this.result.boxes) {
|
||||||
if (box.top < 100) {
|
if (box.top === 0) {
|
||||||
this.width = box.left + box.width;
|
this.width = box.left + box.width;
|
||||||
} else {
|
} else {
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue