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.
This commit is contained in:
Lauryn Menard 2024-02-27 17:59:15 +01:00 committed by Tim Abbott
parent ac9d2f6aca
commit a931d72af3
1 changed files with 3 additions and 1 deletions

View File

@ -53,13 +53,15 @@
th { th {
vertical-align: bottom; vertical-align: bottom;
padding: 8px; padding: 8px;
max-width: fit-content;
} }
td { td {
border-top: 1px solid hsl(0deg 0% 87%); border-top: 1px solid hsl(0deg 0% 87%);
white-space: nowrap; white-space: nowrap;
padding: 2px 8px; padding: 2px 8px;
max-width: 320px;
overflow: hidden;
text-overflow: ellipsis;
} }
tbody > tr:nth-child(odd) > td { tbody > tr:nth-child(odd) > td {