solidtime icon indicating copy to clipboard operation
solidtime copied to clipboard

Scrolling resets when opening project and time edit menus

Open utlark opened this issue 8 months ago • 3 comments

Description

When scrolling down a record and then attempting to change the project, the scroll position resets to the top after the menu opens. Similarly, when editing the time, the scroll adjusts so that the time editing form is positioned at the very bottom of the screen.

Steps To Reproduce

  1. Add entries so they don't fit on the screen
  2. Refresh the page just in case
  3. Try to change the project or time

Self-hosted or Cloud?

Self-Hosted

Version of solidtime: (for self-hosted)

main

solidtime self-hosting guide: (for self-hosted)

https://docs.solidtime.io/self-hosting/guides/docker

utlark avatar Apr 05 '25 19:04 utlark

Summary:

Commit 15ac3e9a resolved the main issue, but several scroll-related bugs remain when interacting with drop-down menus.

Environment:

  • OS: Fedora Linux 42
  • Commit 10a8310e
  • Browsers: Firefox (issue 1 & 2), Chrome, Edge (issue 1 only)

Issue 1: Scroll Restoration After Drop-down Menu Disappears from View

Browsers: Firefox, Chrome, Edge

Steps to Reproduce:

  1. Open a drop-down menu (Project or Tag selector).
  2. Scroll the screen, so the menu is no longer visible.
  3. Click again to close the menu.

Expected Behavior: No scroll changes should occur.

Actual Behavior: The scroll position jumps back to where the menu was originally opened.

Note:

  • The Time Change menu does not exhibit this behavior.
  • The "Additional Options" menu (Delete Entry) blocks scrolling entirely when open.

Issue 2: Firefox Only — Menu Closure Repositions Entry to Middle of Screen

Browser: Firefox only

Steps to Reproduce:

  1. Scroll so that a list item is barely visible at the edge of the viewport.
  2. Open any drop-down menu (except Time Change).
  3. Close the menu.

Expected Behavior: Minimal scroll adjustment, ideally just enough to make the item fully visible (as seen in Chrome).

Actual Behavior: The page scrolls, so the affected list item is repositioned to the middle of the screen.

Notes:

  • This behavior is exclusive to Firefox.
  • Chrome shifts the view only slightly to fit the item.

utlark avatar Apr 25 '25 09:04 utlark

We changed a lot in the latest commits regarding dropdowns. Could you please check if the problem is still relevant in the current main tag?

korridor avatar Apr 30 '25 10:04 korridor

Yes, there have been noticeable improvements to dropdown behavior, and the issue described in the title has been resolved.

I’ve just re-checked the remaining issues mentioned in my previous comment on both the main and latest branches — they are still reproducible on my end.

utlark avatar Apr 30 '25 16:04 utlark