Skip to content

fix(ui): use a single scroll container for the note list - #45

Merged
gnacho merged 1 commit into
mainfrom
fix/notes-list-single-scroll
Nov 8, 2026
Merged

gnacho merged 1 commit into
mainfrom
fix/notes-list-single-scroll

Conversation

@gnacho

@gnacho gnacho commented Nov 8, 2026

Copy link
Copy Markdown
Owner

Why

Between two month groups the list showed a large blank area. Reported on drive.domatix.cloud with 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 was flex: 1 and had its own overflow-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-scroll wrapper 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:

old layout now
group heights (Today, Sep, Aug, Jul) 182 / 182 / 182 / 182 87 / 147 / 147 / 87
blank space inside a group 95px and 35px 0

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.

@gnacho
gnacho merged commit c07d543 into main Nov 8, 2026
@gnacho
gnacho deleted the fix/notes-list-single-scroll branch November 8, 2026 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant