Tuba icon indicating copy to clipboard operation
Tuba copied to clipboard

[Bug]: The window can be resized to hide UI elements

Open kdwk opened this issue 1 year ago • 3 comments

Describe the bug

The window can be resized such that some buttons are out of frame, instead of the UI performing relayouts to adapt to the new size

Steps To Reproduce

  1. Open Tuba
  2. Keep resizing the window to make it thinner
  3. Observe UI elements

Logs and/or Screenshots

Screencast from 2023-12-26 12-21-01.webm

Instance Backend

Mastodon

Operating System

Fedora Silverblue 39

Package

Flatpak

Troubleshooting information

os: GNOME 45 (Flatpak runtime) prefix: /app flatpak: true version: 0.6.1 (production) gtk: 4.12.4 (4.12.4) libadwaita: 1.4.2 (1.4.2) libsoup: 3.4.4 (3.4.4) libgtksourceview: 5.10.0 (5.10.0)

Additional Context

No response

kdwk avatar Dec 26 '23 04:12 kdwk

Unless you can figure out which post refuses to wrap, all I can do is close this as duplicate of #359

GeopJr avatar Dec 26 '23 11:12 GeopJr

I'm not sure I understand. The whole UI is not adapting to the window size changes. For example the New Post button in the bottom right corner will not move with the right edge of the window, so when the window is resized the New Post button will be clipped out and will disappear.

kdwk avatar Dec 26 '23 11:12 kdwk

This is due to one of the posts' LabelWithWidgets not wrapping / having a min width. Usually this would also make the window's minimum width same as the content's but (not sure) libadwaita's new AdwToolbarView, NavigationView does what you are experiencing so mobile devices don't deal with huge window widths due to it

This has happened a lot but unless I get the posts causing it I can't really debug it (#632, #626 and many other instances not reported here)

GeopJr avatar Dec 26 '23 11:12 GeopJr