Repository navigation
fix(ui): use a single scroll container for the note list - #45
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Between two month groups the list showed a large blank area. Reported on
drive.domatix.cloudwith notes from September and August.Cause
The note list is a flex column with one
<section class="note-group">per bucket (Today, This week, September 2026...). Each section wasflex: 1and had its ownoverflow-y: auto, so the sections split the column height between them and each one scrolled on its own. With two notes per month, most of each section was empty space.Measured with the old layout, four groups in a 729px column: every section stretched to 182px, leaving 95px of blank space inside the first and last ones.
Fix
The groups moved inside a
.note-list-scrollwrapper that owns the single scroll (flex: 1; min-height: 0; overflow-y: auto), and the sections keep their natural height. The sticky month headers now stick to that one scroll container.Verification
Same page, same data, on the running instance:
Zero-pixel gap between a group's last note and the next month header, and a month with a single note no longer fills a quarter of the column. The three notes created while measuring were removed afterwards.