From a43291018ab87028ee481c0a18c7a82870c1d717 Mon Sep 17 00:00:00 2001 From: NamelessContributor <94963033+NamelessContributor@users.noreply.github.com> Date: Tue, 1 Mar 2022 14:59:58 +0100 Subject: [PATCH] Limit the width of usernames in tables Fixes the layout issues caused very long usernames in the forum and elsewhere. --- app/javascript/src/styles/common/tables.scss | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/javascript/src/styles/common/tables.scss b/app/javascript/src/styles/common/tables.scss index 161926358..fb463b65b 100644 --- a/app/javascript/src/styles/common/tables.scss +++ b/app/javascript/src/styles/common/tables.scss @@ -76,3 +76,11 @@ table.table-sm { table.table-md { th, td { padding: 0.5rem; } } + +td > .user { + display: inline-block; + max-width: max(15vw, 150px); + overflow: hidden; + text-overflow: ellipsis; + vertical-align: bottom; +}