mirror of
https://github.com/immich-app/immich.git
synced 2025-07-31 15:08:44 -04: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
@ -57,7 +57,7 @@ class Adapter {
|
||||
this.result = result;
|
||||
this.width = 0;
|
||||
for (const box of this.result.boxes) {
|
||||
if (box.top < 100) {
|
||||
if (box.top === 0) {
|
||||
this.width = box.left + box.width;
|
||||
} else {
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user