skyjake / lagrange

A Beautiful Gemini Client
https://gmi.skyjake.fi/lagrange/
BSD 2-Clause "Simplified" License
1.19k stars 62 forks source link

Compact URL presentation should check actual width of input field #512

Open Altonss opened 2 years ago

Altonss commented 2 years ago

image

Altonss commented 2 years ago

The bug is even stranger because when saving a page the gemini of the gemini:// but when copy pasting the "broken" URL, the gemini is then present...

skyjake commented 2 years ago

This is intentional. To save space, a narrow URL field will not show the default "gemini:" scheme. This applies to all URL fields in the UI.

Altonss commented 2 years ago

At least for me as a user this very confusing, especially because the bar is mainly empty because the url is short...

skyjake commented 2 years ago

I agree the implementation isn't ideal. At least it should compare the length of the actual URL to the available space and not just check the width of the field.