Adaptive Layout
While it's not a deal breaker for 42 we'll eventually want this app to be adaptive (i.e. fit onto a width of 360px), so I think it'd be good to start thinking about what that will entail.
The main hurdles I see at the moment are:
-
The window itself has a min width of about 500pxNo longer true on main -
The preferences sidebar is 325px wide so it would fit on mobile, but it might be a bit awkward layout wise. Definitely worth keeping in mind as part of #183 (closed)The new preferences dialog can shrink to 360px -
The "highlight mode" dialog, which has a min width of about 500px -
Adaptive tabs (port to Adwaita Tab Overview) cc @aplazas -
Search/Replace needs special treatment, maybe as a full-width toolbar at the bottom -
The headerbar contains too many elements to work well at narrow widths. Perhaps we could have a narrow mode for widths below 400px or so, which does some of the following: - Replace
Open v
with an icon - Move
New Tab
to the primary menu - Show the line numbers outside the headerbar (maybe an overlay in the bottom right?)
- Make
View
a sub-menu in the primary menu
- Replace
Edited by Khalid Abu Shawarib