about summary refs log tree commit diff stats
path: root/frontend
diff options
context:
space:
mode:
authorAlan Pearce2025-03-23 23:58:52 +0100
committerAlan Pearce2025-03-23 23:58:52 +0100
commit4fa3ceb5ac040a84f2da405c46e4af1231d22f17 (patch)
tree6a9015a9c062f9d0346569401a78eb323ab026b1 /frontend
parent1c56ff7fc392f2d7992e53add5bd76bc8855d4a6 (diff)
downloadsearchix-4fa3ceb5ac040a84f2da405c46e4af1231d22f17.tar.lz
searchix-4fa3ceb5ac040a84f2da405c46e4af1231d22f17.tar.zst
searchix-4fa3ceb5ac040a84f2da405c46e4af1231d22f17.zip
feat: improve handling of long option descriptions
Diffstat (limited to 'frontend')
-rw-r--r--frontend/static/style.css28
1 files changed, 27 insertions, 1 deletions
diff --git a/frontend/static/style.css b/frontend/static/style.css
index d3c9e1d..f7d1f75 100644
--- a/frontend/static/style.css
+++ b/frontend/static/style.css
@@ -162,13 +162,39 @@ dialog > h2 {
 }
 
 table {
-  width: 100%;
   margin-top: 0;
+  width: 100%;
+  table-layout: fixed;
+  white-space: nowrap;
+}
+
+th.description {
+  width: 50%;
+}
+
+th.score {
+  width: 8ex;
 }
 
 td,
 th {
   padding: 0.25rem 0.5rem;
+  text-overflow: ellipsis;
+  overflow: clip;
+}
+
+tr {
+  height: 1.5rem;
+}
+
+td.description > * {
+  max-width: 100%;
+  text-overflow: ellipsis;
+  overflow: clip;
+}
+
+td.description > *:not(:first-child) {
+  display: none;
 }
 
 ul:only-child {