GeopJr / Tuba

Browse the Fediverse
https://tuba.geopjr.dev/
GNU General Public License v3.0
504 stars 55 forks source link

[Bug]: Notes field EntryRow cannot show full contents (except scrolling while editing) #1039

Open nekohayo opened 1 week ago

nekohayo commented 1 week ago

Describe the bug

Kind of a follow-up to https://github.com/GeopJr/Tuba/issues/917#issuecomment-2071220194 now that I can test it as part of the nice 0.8.x release. The notes field does not allow reading longer contents.

One easy (but not touch-friendly) way to workaround this for starters could be to simply show the contents in a GtkTooltip on hover. It would at least be better than nothing, I guess.

Another more complicated way could be to use the approach mentioned in the comment linked above:

Should it be split into two? :

  1. textview just to display it
  2. an "edit note" button on the profile menu with a dialog for editing it

Or maybe a GtkLabel in a row (with the edit button), somehow?

Essentially you are hitting the same presumed widgetry limitation issue as https://gitlab.gnome.org/GNOME/nautilus/-/issues/46#note_2136093 ; is there a widget that can actually accomplish this?

Steps To Reproduce

  1. Write a long note on someone's profile

Logs and/or Screenshots

No response

Instance Backend

Mastodon

Operating System

Fedora 39

Package

Flatpak

Troubleshooting information

os: GNOME 46 (Flatpak runtime) prefix: /app flatpak: true version: 0.8.0 (production) gtk: 4.14.4 (4.14.4) libadwaita: 1.5.1 (1.5.1) libsoup: 3.4.4 (3.4.4) libgtksourceview: 5.12.0 (5.12.0)

Additional Context

No response

GeopJr commented 1 week ago

As it is, it should still be readable - even if terrible for longer inputs - by editing/clicking on it and scrolling/moving the cursor.

Yep, it's the same issue as the nautilus one. I can either create a custom row with a text view, do my suggestion on that other comment, or maybe an action row with a button?

image

But that button will either show a popup with an entry or a dialog etc