refactor: remove unnecessary reflow trigger in day detail panel
Some checks failed
CI / lint-and-test (push) Failing after 3s

- 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.
This commit is contained in:
2026-02-21 20:37:16 +03:00
parent 80e209e3d4
commit 0c93fe3372

View File

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