about summary refs log tree commit diff stats
path: root/internal/components/packages.go
diff options
context:
space:
mode:
authorAlan Pearce2025-03-23 23:58:52 +0100
committerAlan Pearce2025-03-23 23:58:52 +0100
commit4fa3ceb5ac040a84f2da405c46e4af1231d22f17 (patch)
tree6a9015a9c062f9d0346569401a78eb323ab026b1 /internal/components/packages.go
parent1c56ff7fc392f2d7992e53add5bd76bc8855d4a6 (diff)
downloadsearchix-4fa3ceb5ac040a84f2da405c46e4af1231d22f17.tar.lz
searchix-4fa3ceb5ac040a84f2da405c46e4af1231d22f17.tar.zst
searchix-4fa3ceb5ac040a84f2da405c46e4af1231d22f17.zip
feat: improve handling of long option descriptions
Diffstat (limited to 'internal/components/packages.go')
-rw-r--r--internal/components/packages.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/components/packages.go b/internal/components/packages.go
index db45302..90bf92d 100644
--- a/internal/components/packages.go
+++ b/internal/components/packages.go
@@ -15,9 +15,9 @@ func Packages(result *index.Result) g.Node {
 			Tr(
 				Th(Scope("col"), g.Text("Attribute")),
 				Th(Scope("col"), g.Text("Name")),
-				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")),
 				),
 			),
 		),
@@ -41,7 +41,7 @@ func packageRow(hit index.DocumentMatch, p nix.Package) g.Node {
 		Td(
 			g.Text(p.Name),
 		),
-		Td(
+		Td(Class("description"),
 			g.Text(p.Description),
 		),
 		g.If(config.DevMode,