frontend: select package name on click (#497)

Fixes https://github.com/NixOS/nixos-search/issues/496
This commit is contained in:
Naïm Camille Favier 2022-07-04 12:59:23 +02:00 committed by GitHub
parent 398253d3eb
commit 7e0226d427
Failed to generate hash of commit
2 changed files with 5 additions and 1 deletions

View file

@ -349,7 +349,7 @@ viewResultItem nixosChannels channel showInstallDetails show item =
ul []
(li []
[ text "Name: "
, code [] [ text item.source.pname ]
, code [ class "package-name" ] [ text item.source.pname ]
]
:: (optionals (item.source.pversion /= "")
[ li []

View file

@ -43,6 +43,10 @@
}
}
.package-name {
user-select: all;
}
/* ------------------------------------------------------------------------- */
/* -- Layout --------------------------------------------------------------- */
/* ------------------------------------------------------------------------- */