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:
Ben 2025-07-30 08:39:19 -04:00 committed by GitHub
parent 4ea4ee40af
commit baadf9db20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;