all repos — searchix @ 4fa3ceb5ac040a84f2da405c46e4af1231d22f17

Search engine for NixOS, nix-darwin, home-manager and NUR users

feat: improve handling of long option descriptions

Alan Pearce
commit

4fa3ceb5ac040a84f2da405c46e4af1231d22f17

parent

1c56ff7fc392f2d7992e53add5bd76bc8855d4a6

1 file changed, 27 insertions(+), 1 deletion(-)

changed files
M frontend/static/style.cssfrontend/static/style.css
@@ -162,13 +162,39 @@ margin-top: 0.5rem;
} 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 {