mirror of
https://github.com/NixOS/nixos-search
synced 2024-11-13 23:47:07 +00:00
move programs to the top of the metadata display (#620)
* move programs to the top of the metadata display rename to "programs provided", since where they are provided is an implementation detail irrelevant to users of `nix-shell -p`. * Fix CSS --------- Co-authored-by: Naïm Favier <n@monade.li>
This commit is contained in:
parent
ad5fab6ce5
commit
3a42ce9545
2 changed files with 7 additions and 3 deletions
|
@ -504,7 +504,7 @@ viewResultItem nixosChannels channel showInstallDetails show item =
|
|||
|
||||
programs =
|
||||
div []
|
||||
[ h4 [] [ text "Programs in ", code [] [ text "/bin" ] ]
|
||||
[ h4 [] [ text "Programs provided" ]
|
||||
, if List.isEmpty item.source.programs then
|
||||
p [] [ text "This package provides no programs." ]
|
||||
|
||||
|
@ -733,8 +733,8 @@ viewResultItem nixosChannels channel showInstallDetails show item =
|
|||
<|
|
||||
Maybe.map Tuple.first item.source.flakeUrl
|
||||
]
|
||||
:: maintainersAndPlatforms
|
||||
:: programs
|
||||
:: maintainersAndPlatforms
|
||||
:: []
|
||||
)
|
||||
]
|
||||
|
|
|
@ -423,8 +423,12 @@ header .navbar.navbar-static-top {
|
|||
|
||||
}
|
||||
|
||||
// maintainers and platforms
|
||||
// programs
|
||||
& > :nth-child(3) {
|
||||
}
|
||||
|
||||
// maintainers and platforms
|
||||
& > :nth-child(4) {
|
||||
margin-top: 1em;
|
||||
display: grid;
|
||||
grid-template-columns: auto auto;
|
||||
|
|
Loading…
Reference in a new issue