tchx84 / Flatseal

Manage Flatpak permissions
GNU General Public License v3.0
1.15k stars 68 forks source link

Dynamic sidebar width #604

Closed bertob closed 4 months ago

bertob commented 11 months ago

Libadwaita 1.4 allows for dynamic sidebar widths, so you can shrink windows to relatively small sizes without folding, avoiding awkward cases like this:

image

Settings for comparison, using a dynamic sidebar width:

image

tchx84 commented 11 months ago

Hey @bertob , if we can find a good combination of parameters, sure!

I quickly tried that before and ended up with something like this:

Screenshot from 2023-09-29 06-16-07

To which I (quickly, as well) concluded that:

  1. It didn't look good.
  2. Felt not too useful having all that information ellipsized (but, a problem that could be addressed separately).

At some point having the window displaying the sidebar only it's kind of unavoidable, I wonder what window size you think it wouldn't be considered awkward.

Another thing didn't look good was the default sidebar minimum width

Screenshot from 2023-09-29 06-25-12

That is, considering that Flatseal displays often long app names and long app ids (compared to Settings).

Any suggestions? :)

bertob commented 11 months ago

I don't think ellipsizing the name or ID is necessarily a problem here. All of this information is available on the detail view as well anyway, finding the app you're looking for should never be a problem I think.

As for the exact values, I'd try the ones Nautilus or Settings use as a start and iterate from there.