Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: A post causes a UI overflow on Tuba App #914

Open
kop316 opened this issue Apr 18, 2024 · 6 comments
Open

[Bug]: A post causes a UI overflow on Tuba App #914

kop316 opened this issue Apr 18, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@kop316
Copy link
Contributor

kop316 commented Apr 18, 2024

Describe the bug

Hello!

This post seems to cause an overflow of the UI of the Tuba App: https://akkoma.meows.gay/objects/b0dcc9c5-ece9-49eb-a83a-7c2b8b60c1bd

Screenshot:
Screenshot_2024-04-17_20-40-09

Steps To Reproduce

  1. Follow that account
    1. Have it show up on your Home feed.

Logs and/or Screenshots

<paste your logs here>

Instance Backend

Mastodon

Operating System

Debian Trixie

Package

OS repositories

Troubleshooting information

No response

Additional Context

No response

@kop316 kop316 added the bug Something isn't working label Apr 18, 2024
@GeopJr
Copy link
Owner

GeopJr commented Apr 18, 2024

That's not it (or at least it's doesn't reproduce it here)

In general, the issue is with GtkLabel + ellipsize + wrap measuring the widget size incorrectly. GtkLabels are beyond broken under multiple containers, see this one for another example #756 (comment)

It has been reported again #719 and again #632 and again #626 and many other times, but unless I get the post (or rather label) actually causing it, reproducibly, I can't really do anything, including creating a minimal reproduction so gtk fixes it or a workaround from our side

Finding which one is actually causing it is also somewhat difficult as you have to play around with the inspector until you figure it out, which is likely to crash a few times. I don't expect anyone to go through that but I'm still throwing it out there just in case

@GeopJr
Copy link
Owner

GeopJr commented Apr 18, 2024

Though, from the looks of it you are also using an older version of Tuba, it might have been fixed on 0.7 🤷

@kop316
Copy link
Contributor Author

kop316 commented Apr 18, 2024

Ahh, thanks for that. You are correct, that was the wrong post. I think I found the correct post that causes it: https://fosstodon.org/deck/@yassie_j@labyrinth.zone/112287918084026585

@kop316
Copy link
Contributor Author

kop316 commented Apr 18, 2024

It looks like since this is a duplicate, it doesn't make sense to keep open.

@kop316 kop316 closed this as completed Apr 18, 2024
@GeopJr
Copy link
Owner

GeopJr commented Apr 18, 2024

Thanks for figuring it out!

I'll re-open this as they are mostly case-by-case. I'll see about writing a workaround!

@GeopJr GeopJr reopened this Apr 18, 2024
@GeopJr
Copy link
Owner

GeopJr commented Apr 18, 2024

Okay so, GtkLabel reports a larger min width that natural. This can be fixed by removing the overflow workaround but then we need to fix that. So for now, I'll say blocked by https://gitlab.gnome.org/GNOME/gtk/-/issues/6637 and see how it goes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants