From a931d72af3a8d04741697445bf9ec36f38ff27bb Mon Sep 17 00:00:00 2001 From: Lauryn Menard Date: Tue, 27 Feb 2024 17:59:15 +0100 Subject: [PATCH] activity: Limit width of columns in activity charts. Sets the max-width for table data cells in the activity and installation charts. If the content exceeds the limit, then the overflow is set to hidden and the text-overflow is set to ellipsis, so there is a visual indication that the text is not completely visible. --- web/styles/portico/activity.css | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/styles/portico/activity.css b/web/styles/portico/activity.css index 3e26a52b24..71b9223053 100644 --- a/web/styles/portico/activity.css +++ b/web/styles/portico/activity.css @@ -53,13 +53,15 @@ th { vertical-align: bottom; padding: 8px; - max-width: fit-content; } td { border-top: 1px solid hsl(0deg 0% 87%); white-space: nowrap; padding: 2px 8px; + max-width: 320px; + overflow: hidden; + text-overflow: ellipsis; } tbody > tr:nth-child(odd) > td {