Jeffser / Alpaca

An Ollama client made with GTK4 and Adwaita
https://jeffser.com/alpaca
GNU General Public License v3.0
302 stars 38 forks source link

Window size not adapting to large text #301

Open Zaglim opened 1 week ago

Zaglim commented 1 week ago

Describe the bug When GNOME's Large Text Accessibility option is enabled, the content of the 'Manage Models' window is larger than the window itself. Horizontal scrolling is required to view the content completely.

Expected behavior The Manage Models window expands in width when there is space available. When there is not space available, the text wraps as necessary so the content is not wider than the window. This is the behaviour of the preferences window.

Screenshots Without large text: Screenshot of Alpaca open to Manage Models, with Large Text disabled in the GNOME desktop environment

With large text (undesirable behavior): Screenshot of Alpaca open to Manage Models, with Large Text enabled in the GNOME desktop environment

Preferences without large text: Slim Preferences with Large Text disabled

Preferences with large text (demonstrating expected behaviour): Slim Preferences with Large Text enabled

Debugging information n/a - I don't think this is applicable for this bug report. Please let me know if it is, or if this issue is better as a feature request.

Jeffser commented 19 hours ago

Hi, I have an update on this. I made the dialog resizeable so it looks good now

image

Problem is, now that it doesn't have a size limit this happens when the window is really small, this will gravely affect phones

image

https://github.com/Jeffser/Alpaca/commit/3653af7b81909b806c5d9217b1a7b1bd8e761c60