Jeffser / Alpaca

An Ollama client made with GTK4 and Adwaita
GNU General Public License v3.0
116 stars 18 forks source link

Window contents gets trimmed by window border itself when model's name is longer than usual #103

Closed joaquinvacas closed 6 days ago

joaquinvacas commented 3 weeks ago

Describe the bug When using the window on the smaller size possible (like mobile view) and choosing a model with a longer name than usual (for example wizard-vicuna-uncensored:latest) makes the window draw controls out of the view of the window content itself.

Expected behavior To draw elements inside the window.

Screenshots image Using a short name like "gemma" makes window controls + send button to fit on the window view.

image With the same size, changing to a model with a longer name, makes the window controls + send button to be trimmed or draw outside the window itself.

Additional context Alpaca 0.9.5 - Flatpak version under Fedora 40 Workstation (GNOME 46)

¡Gracias!

Jeffser commented 1 week ago

Hi, thanks for the report, I'm aware this is an issue but it requires redesigning the topbar, that's something I will do eventually but not for now, I could also limit the width of the app but I think that might make the app unusable on phone, I know there is at least one person that uses this app on a Linux phone

Jeffser commented 6 days ago

I fixed it !

https://github.com/Jeffser/Alpaca/commit/dd20ff78c41f39ba156f73ea5866dbe5206a6396