From baadf9db20ec7be633283c6a60b144d0ba8b7cb7 Mon Sep 17 00:00:00 2001 From: Ben <45583362+ben-basten@users.noreply.github.com> Date: Wed, 30 Jul 2025 08:39:19 -0400 Subject: [PATCH] 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. --- web/src/lib/utils/layout-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/lib/utils/layout-utils.ts b/web/src/lib/utils/layout-utils.ts index 429055b92a..e850371b16 100644 --- a/web/src/lib/utils/layout-utils.ts +++ b/web/src/lib/utils/layout-utils.ts @@ -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;