frontend: select package name on click (#497)
Fixes https://github.com/NixOS/nixos-search/issues/496
This commit is contained in:
parent
398253d3eb
commit
7e0226d427
|
@ -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 []
|
||||
|
|
|
@ -43,6 +43,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
.package-name {
|
||||
user-select: all;
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------------- */
|
||||
/* -- Layout --------------------------------------------------------------- */
|
||||
/* ------------------------------------------------------------------------- */
|
||||
|
|
Loading…
Reference in a new issue