Skip to content

Commit

Permalink
tables: add classes to handle overflowing tables
Browse files Browse the repository at this point in the history
To be added on a per table basis.
* full-bleed lets the table expand beyond the text column
* break-word make table content break and wrap instead of forcing width based on content

Also added `white-space: nowrap` to `code` in `th` so column name doesn't get squeezed.
  • Loading branch information
thimy committed Sep 9, 2024
1 parent 7d6240b commit 7fb6969
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions frontend/styles/atoms/table.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ table {
}
}
}

&.word-break {
td {
word-break: break-all;
}
}
}

thead {
Expand All @@ -35,6 +41,10 @@ thead {
border-right: var(--border-default);
border-top-right-radius: var(--border-radius-large);
}

code {
white-space: nowrap;
}
}
}

Expand Down

0 comments on commit 7fb6969

Please sign in to comment.