This approach has the problem that content may not be fully displayed in mobile devices, as they cannot take advantage of the dynamic title.
However, by inspecting real production data, it has been concluded that text should usually not overflow in most of cases.
If this becomes a problem in future, we could check the screen size via window.matchMedia and avoid truncation altogether in small resolutions, where the content would wrap multiple times.
Update dashboard filtering dropdowns so that:
text-overflow: ellipsis
.title
is added with the full content of listbox options when they have been truncated.https://github.com/user-attachments/assets/d74a1b41-1d60-4e7a-bca6-bf8067869853
Considerations
This approach has the problem that content may not be fully displayed in mobile devices, as they cannot take advantage of the dynamic
title
.However, by inspecting real production data, it has been concluded that text should usually not overflow in most of cases.
If this becomes a problem in future, we could check the screen size via
window.matchMedia
and avoid truncation altogether in small resolutions, where the content would wrap multiple times.