web: style version chart
This commit is contained in:
parent
fb73d8272e
commit
cc1e998ec5
@ -1352,18 +1352,14 @@ fn reading_progress(ratio: f64) -> Node<Msg> {
|
|||||||
pub fn versions(versions: &crate::state::Version) -> Node<Msg> {
|
pub fn versions(versions: &crate::state::Version) -> Node<Msg> {
|
||||||
debug!("versions {versions:?}");
|
debug!("versions {versions:?}");
|
||||||
aside![
|
aside![
|
||||||
C!["NOTPORTED", "tags-menu", "menu"],
|
C!["p-2"],
|
||||||
p![C!["NOTPORTED", "menu-label"], "Versions"],
|
p![C!["uppercase", "font-bold"], "Versions"],
|
||||||
ul![
|
p![C!["pl-2"], "Client"],
|
||||||
C!["NOTPORTED", "menu-list"],
|
p![C!["pl-4"], &versions.client],
|
||||||
li!["Client"],
|
versions
|
||||||
li![span![C!["NOTPORTED", "tag-indent"], &versions.client]]
|
.server
|
||||||
],
|
.as_ref()
|
||||||
versions.server.as_ref().map(|v| ul![
|
.map(|v| vec![p![C!["pl-2"], "Server"], p![C!["pl-4"], v]])
|
||||||
C!["NOTPORTED", "menu-list"],
|
|
||||||
li!["Server"],
|
|
||||||
li![span![C!["NOTPORTED", "tag-indent"], v]]
|
|
||||||
])
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user