lehitoskin / ivy

Ivy, the Taggable Image Viewer
GNU General Public License v3.0
16 stars 3 forks source link

Error status message in status bar cuts off despite plenty of room to grow #86

Closed IonoclastBrigham closed 5 years ago

IonoclastBrigham commented 6 years ago

When loading e.g. an unsupported gif, the status bar displays:

Error loading file "foo-some-file-with-a-longer-na"

Cuts off at 30 chars; seems consistent, so maybe not a pixel width limitation. See attached file for an example which will trigger the bug.

1-error-msg-should-end-here-- -doot-doooo-cant-see-this

screen shot 2018-06-05 at 12 10 16 pm

lehitoskin commented 6 years ago

See these lines. The 30 character limit was explicitly set, but I can't remember a reason why 30 characters, specifically. I remember wanting to keep space for all the rest of the stuff in the status bar.

lehitoskin commented 6 years ago

I admit that the truncation length of 30 is completely arbitrary and I only chose it because it gave plenty of room for the other text in the status bar. As far as this being a UX bug, my thoughts are basically that to get the best results, we'd need to dynamically set the truncation length, showing more or less of the image's name when the on-size event runs.