diff options
author | Alan Pearce | 2025-03-23 23:58:52 +0100 |
---|---|---|
committer | Alan Pearce | 2025-03-23 23:58:52 +0100 |
commit | 4fa3ceb5ac040a84f2da405c46e4af1231d22f17 (patch) | |
tree | 6a9015a9c062f9d0346569401a78eb323ab026b1 /internal/components/options.go | |
parent | 1c56ff7fc392f2d7992e53add5bd76bc8855d4a6 (diff) | |
download | searchix-4fa3ceb5ac040a84f2da405c46e4af1231d22f17.tar.lz searchix-4fa3ceb5ac040a84f2da405c46e4af1231d22f17.tar.zst searchix-4fa3ceb5ac040a84f2da405c46e4af1231d22f17.zip |
feat: improve handling of long option descriptions
Diffstat (limited to 'internal/components/options.go')
-rw-r--r-- | internal/components/options.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/components/options.go b/internal/components/options.go index 1d01784..630fecd 100644 --- a/internal/components/options.go +++ b/internal/components/options.go @@ -14,9 +14,9 @@ func Options(result *index.Result) g.Node { THead( Tr( Th(Scope("col"), g.Text("Title")), - Th(Scope("col"), g.Text("Description")), + Th(Scope("col"), Class("description"), g.Text("Description")), g.If(config.DevMode, - Th(Scope("col"), g.Text("Score")), + Th(Scope("col"), Class("score"), g.Text("Score")), ), ), ), @@ -37,7 +37,7 @@ func optionRow(hit index.DocumentMatch, o nix.Option) g.Node { Td( openDialogLink(o.Name), ), - Td( + Td(Class("description"), firstSentence(o.Description), Dialog(ID(o.Name)), ), |