Open 4jNsY6fCVqZv opened 5 years ago
libhandy is not explicitly needed for responsive layouts, and in itself does not determine the design of the app. Consequently, I'm going to consider this out of scope. If you have specific recommendations for more responsive behaviors I will consider those individually.
I understand that very well! Have you ever tested Ephemeral mobile? And at what level are you already working on making a responsive layout possible? libhandy was just an idea, because GNOME/Purism currently do a lot for the new Librem Phone.
@4jNsY6fCVqZv Ephemeral is designed for elementary OS, which does not run on mobile (and has minimum display size requirements). So I have not tested Ephemeral on a mobile device. However, I am open to specific issue reports that affect window sizing or other mobile issues.
Re-opening as I've decided it could be cool to see Ephemeral running on a Librem 5 or PinePhone. cc @Exalm
Ok, so what Epiphany does is:
Hdy.Column
and not restrict its minimum widthThis allows to have margins on desktop, which would nicely interpolate into no margins on mobile as you resize it
Gtk.Revealer
) and instead reveal a Gtk.ActionBar
with these same buttons, but on the bottom.Since we can't do breakpoints nicely, it boils down to listening to size-allocate really.
And obviously if you have long strings somewhere, ellipsize/wrap them.
I don't think I love the buttons moving from the top to the bottom (as that's pretty jarring on desktop), but I could see maybe dropping (some of) them into the menu? Especially since we have gestures for back/forward, so those are slightly less important.
Pages can disable the gesture, so it shouldn't be relied on exclusively.
Menu would be another option, indeed. That's what Epiphany did initially iirc, but it looked super weird as it had 3 rows of buttons in there. Ephemeral would have 2, so maybe? It would match e.g. Firefox and Chrome on Android.
Many GNOME apps have already done this during the development of the Purism Librem phone. So has Epiphany. Since Ephemeral is inspired by Firefox Focus, it would be wonderful to get mobile ready!
The code is hosted at Purism: https://source.puri.sm/Librem5/libhandy
Here you can find some additional links by Adrien Plazas: https://bytesgnomeschozo.blogspot.com/2018/10/librem-5-gnome-332.html