Skip to content

composer-widget: Ellipsize long attachment names

Niels De Graef requested to merge nielsdg/too-long-attachment-name into main

If an attachment name is way too long, the attachment name label forces the composer widget to become too wide which breaks on smaller screens.

To fix this, ellipsize the label if needed. Since the user has probably just chosen the attachment, they probably have an idea which attachment it is anyway, so we can do this instead of wrapping. Since the file extension can make a big difference, we ellipsize in the middle.

When a label is ellipsized, we also add the label as a tooltip in case a user wants to double check the attachment name though.

Fixes: #1577 (closed)

Merge request reports