web: fix styling on news post tags to match email
This commit is contained in:
parent
e7a865204d
commit
8dea1f1bd6
@ -990,25 +990,33 @@ fn news_post(
|
|||||||
};
|
};
|
||||||
let tag = tag.clone();
|
let tag = tag.clone();
|
||||||
div![
|
div![
|
||||||
C!["control"],
|
C![
|
||||||
|
"message-tags",
|
||||||
|
"field",
|
||||||
|
"is-grouped",
|
||||||
|
"is-grouped-multiline"
|
||||||
|
],
|
||||||
div![
|
div![
|
||||||
C!["tags", "has-addons"],
|
C!["control"],
|
||||||
a![
|
div![
|
||||||
classes,
|
C!["tags", "has-addons"],
|
||||||
attrs,
|
a![
|
||||||
style,
|
classes,
|
||||||
match tag.as_str() {
|
attrs,
|
||||||
"attachment" => span!["📎"],
|
style,
|
||||||
"replied" => span![i![C!["fa-solid", "fa-reply"]]],
|
match tag.as_str() {
|
||||||
_ => span![&tag],
|
"attachment" => span!["📎"],
|
||||||
},
|
"replied" => span![i![C!["fa-solid", "fa-reply"]]],
|
||||||
ev(Ev::Click, move |_| Msg::FrontPageRequest {
|
_ => span![&tag],
|
||||||
query: format!("tag:{tag}"),
|
},
|
||||||
after: None,
|
ev(Ev::Click, move |_| Msg::FrontPageRequest {
|
||||||
before: None,
|
query: format!("tag:{tag}"),
|
||||||
first: None,
|
after: None,
|
||||||
last: None,
|
before: None,
|
||||||
})
|
first: None,
|
||||||
|
last: None,
|
||||||
|
})
|
||||||
|
]
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user