Skip to content

Commit

Permalink
fix styling of lists
Browse files Browse the repository at this point in the history
  • Loading branch information
memo33 committed Dec 7, 2024
1 parent d8b1f81 commit d54ab8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion web/channel/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ a.btn:hover {
background-color: #707070;
text-decoration: none;
}
#pkginfo ul {
ul.unstyled-list {
list-style: none;
margin: 0;
padding: 0;
Expand Down
6 changes: 3 additions & 3 deletions web/src/main/scala/sc4pac/web/ChannelPage.scala
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ object ChannelPage {
if (pkg.variants.length == 1 && pkg.variants.head.variant.isEmpty)
"None"
else
H.ul(
H.ul(H.cls := "unstyled-list")(
pkg.variants.map { vd =>
H.li(variantFrag(vd.variant, pkg.variantDescriptions))
}
Expand All @@ -161,12 +161,12 @@ object ChannelPage {
.distinct
add("Dependencies",
if (deps.isEmpty) "None"
else H.ul(deps.map(dep => H.li(pkgNameFrag(dep))))
else H.ul(H.cls := "unstyled-list")(deps.map(dep => H.li(pkgNameFrag(dep))))
)

add("Required By",
if (pkg.info.requiredBy.isEmpty) "None"
else H.ul(pkg.info.requiredBy.map(dep => H.li(pkgNameFrag(dep))))
else H.ul(H.cls := "unstyled-list")(pkg.info.requiredBy.map(dep => H.li(pkgNameFrag(dep))))
)

H.div(
Expand Down

0 comments on commit d54ab8c

Please sign in to comment.