all repos — searchix @ 70340c792a3c956bb73337a51970cc16dfff391d

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

feat: Port modals to no-js variant

Kaya
commit

70340c792a3c956bb73337a51970cc16dfff391d

parent

02efd4e911618272b5b4863a730c64654a34914a

1 file changed, 4 insertions(+), 4 deletions(-)

changed files
M internal/components/options.gointernal/components/options.go
@@ -9,7 +9,7 @@ g "alin.ovh/gomponents"
. "alin.ovh/gomponents/html" ) -func Options(result *index.Result) g.Node { +func Options(result *index.Result, qs string) g.Node { return Table( THead( Tr(
@@ -23,7 +23,7 @@ ),
TBody( g.MapIter(result.Hits, func(hit index.DocumentMatch) g.Node { if m, ok := hit.Data.(nix.Option); ok { - return optionRow(hit, m) + return optionRow(hit, m, qs) } return emptyOptionRow(hit)
@@ -49,10 +49,10 @@ ),
) } -func optionRow(hit index.DocumentMatch, o nix.Option) g.Node { +func optionRow(hit index.DocumentMatch, o nix.Option, qs string) g.Node { return Tr( Td( - openDialogLink(o.Name), + openDialogLink(o.Name, qs), ), Td(Class("description"), firstSentence(o.Description),