enhance: Alt text in image viewer #178
Loading…
Reference in a new issue
No description provided.
Delete branch "nullobsi/FoundKey:improve-alt-text"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add text box to PhotoSwipe image viewer when activated.
See:
https://github.com/misskey-dev/misskey/pull/9109
https://fedi.nullob.si/notes/95q4yywihr
Looks nice!
I'm pretty sure I've said this before somewhere, but I don't think it is a good idea to fall back to file names, because if there is no image description, the file name is probably automatically generated as well. And IMHO a filename like
image.png
or worse31054d0f9a876caf4ca07a106aea16a698221554954fd448e91946e604a77156.mp4
& co is not helpful for anyone.Yes there may be helpful filenames but I don't think it is worth displaying the filenames in all the other cases. To check my suspicions I had a look at my instance's database to check:
SQL query and result
The query picks 20 random file names where there is no image description.
b5afb0b495
toe9ab42c10a
Okay, I made it disappear when there's no actual image description. Also, for longer image descriptions, I made it overflow: auto.
I don't understand why you still added/left in the change that uses the filename as fallback elsewhere. I've reverted that part in
f571f61c2d
.Must have missed that before merging.