From 8dea1f1bd60da0372a864c28a00b1b2acce69f59 Mon Sep 17 00:00:00 2001 From: Bill Thiede Date: Tue, 29 Oct 2024 17:16:45 -0700 Subject: [PATCH] web: fix styling on news post tags to match email --- web/src/view/mod.rs | 44 ++++++++++++++++++++++++++------------------ 1 file changed, 26 insertions(+), 18 deletions(-) diff --git a/web/src/view/mod.rs b/web/src/view/mod.rs index dda7969..a3b2285 100644 --- a/web/src/view/mod.rs +++ b/web/src/view/mod.rs @@ -990,25 +990,33 @@ fn news_post( }; let tag = tag.clone(); div![ - C!["control"], + C![ + "message-tags", + "field", + "is-grouped", + "is-grouped-multiline" + ], div![ - C!["tags", "has-addons"], - a![ - classes, - attrs, - style, - match tag.as_str() { - "attachment" => span!["📎"], - "replied" => span![i![C!["fa-solid", "fa-reply"]]], - _ => span![&tag], - }, - ev(Ev::Click, move |_| Msg::FrontPageRequest { - query: format!("tag:{tag}"), - after: None, - before: None, - first: None, - last: None, - }) + C!["control"], + div![ + C!["tags", "has-addons"], + a![ + classes, + attrs, + style, + match tag.as_str() { + "attachment" => span!["📎"], + "replied" => span![i![C!["fa-solid", "fa-reply"]]], + _ => span![&tag], + }, + ev(Ev::Click, move |_| Msg::FrontPageRequest { + query: format!("tag:{tag}"), + after: None, + before: None, + first: None, + last: None, + }) + ] ] ] ]