Opening notes expands the window size excessively
Background
- Opening notes by default hosts them in new tabs.
- Tab labels include note titles.
- The minimum application window width is currently dependent on the number of open notes and their title length.
- The application window width is expanded automatically if necessary when opening new notes.
Problem statement
- Having several notes open at the same time requires a large window width, and thus sometimes too much screen space for a given monitor.
- Having few notes open with long titles requires a large window width, and thus sometimes too much screen space for a given monitor.
- Opening new notes can have the application expand the window width to exceed the available screen space on the monitor, resulting in parts of the window being invisible outside of the viewport.
- Expanding window size automatically for this purpose is not common behavior from other applications and thus might not be expected or desirable, especially for users who might organize their windows on the desktop to view multiple key windows at once (e.g. while taking notes on a video or another document visible in another window). The behavior may also not comply with GNOME HIGs (Windows, Tabs), in case that's a goal.
Proposal
Other GNOME apps like the GNOME Text Editor or popular web browsers can be used as inspiration as they use tabs with dynamic labels and don't exhibit the problem. Mimicking also provides consistency across the desktop, which is desirable for many users.
Mitigations
- Truncate note titles in tab labels.
- Revert to opening notes in new windows by default, perhaps as an optional preference setting.
Tested version
43.1.