From 0c93fe3372eb9343a5f60771cfddb076f02f110f Mon Sep 17 00:00:00 2001 From: Nikolay Tatarinov Date: Sat, 21 Feb 2026 20:37:16 +0300 Subject: [PATCH] refactor: remove unnecessary reflow trigger in day detail panel - Eliminated the forced reflow line in the `showAsBottomSheet` function to streamline the rendering process of the day detail panel. - This change enhances code clarity and maintains the intended functionality without impacting user experience. --- webapp/js/dayDetail.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/webapp/js/dayDetail.js b/webapp/js/dayDetail.js index 425aab0..1ab3915 100644 --- a/webapp/js/dayDetail.js +++ b/webapp/js/dayDetail.js @@ -186,8 +186,6 @@ function showAsBottomSheet() { requestAnimationFrame(() => { requestAnimationFrame(() => { - // Force reflow so WebView paints the "closed" state before we add --open - void panelEl.offsetHeight; overlayEl.classList.add("day-detail-overlay--visible"); panelEl.classList.add("day-detail-panel--open"); const closeBtn = panelEl.querySelector(".day-detail-close");