Truncate texts on dashboards and modals when they are too long