Tuba icon indicating copy to clipboard operation
Tuba copied to clipboard

[Bug]: New Filter dialog is small

Open RocketRide9 opened this issue 1 year ago • 3 comments

Describe the bug

New Filter default size is too small. It's default size could be made bigger.

Steps To Reproduce

  1. Go to Settings
  2. Filters
  3. Add Filter...
  4. See dialog window

Logs and/or Screenshots

изображение

IMO dialog should be bigger to fit it's content without scrolling

Instance Backend

Mastodon

Operating System

Linux

Package

Flatpak

Troubleshooting information

No response

Additional Context

No response

RocketRide9 avatar Mar 23 '24 12:03 RocketRide9

Thanks for the suggestion!

One thing I'd like to preserve is the 'depth' of the dialogs. I want the "Filter edit" dialog to still seem as if it's a dialog of the "Preferences" dialog. Higher values while they look ok when the window in also big, they start losing their 'depth' as the window shrinks:

Screencast from 2024-03-24 01-48-57.webm

Maybe I'm overthinking it and 'depth' isn't that important? The dialogs are new so I don't really know what patterns other gnome apps follow :/

Let me know what you think

IMO dialog should be bigger to fit it's content without scrolling

Not really possible, the content height could be very high based on the amount of keywords, and is definitely bigger than most typical window sizes

GeopJr avatar Mar 23 '24 23:03 GeopJr

In case some of the tricks here are useful, for dynamically figuring out the needed height, see this article.

In an ideal world, I'd recommend a UI that adapts on the desktop to use wider windows, with contents of that dialog being separated into multiple columns to make use of the generous amount of horizontal space on a landscape computer display, but I understand that this would be an effort that may complexify the code…

nekohayo avatar Mar 26 '24 02:03 nekohayo

I don't think a multi column to single column adaptive layout can be easily implemented. There are many edge cases with widget sizing and whatnot. Looking for example at Newsflash, which has 3 'columns', to get around it, it uses multiple nested split layouts :shrug:

I can do multiple pages, like the preferences dialog, if there's too much on the filter edit one. "General", "Contexts", "Keywords"

GeopJr avatar Mar 26 '24 13:03 GeopJr