From 1aebcf020050c9ccee7df49601eceb8fbb612400 Mon Sep 17 00:00:00 2001 From: Ada Werefox Date: Wed, 14 Jun 2023 16:07:26 -0500 Subject: [PATCH] Okay one more small fix. --- void-fe/src/components/void_poem.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/void-fe/src/components/void_poem.rs b/void-fe/src/components/void_poem.rs index 83a4511..db9504a 100644 --- a/void-fe/src/components/void_poem.rs +++ b/void-fe/src/components/void_poem.rs @@ -61,20 +61,19 @@ pub fn PoemContent(cx: Scope) -> Element { .expect("Grabbed poem struct from database.") .creation_date .clone(); + let publish_string = "\u{003C}br\u{003E}\u{003C}br\u{003E}\u{003C}br\u{003E}Published: "; #[cfg(any(target_family = "unix", target_family = "windows"))] return cx.render(rsx! { div { class: "flex p-2 mx-auto max-w-full justify-center", details { class: "group p-4 max-w-fit space-y-4 ring-4 {user_theme} {user_font}", summary { class: "group-open:before:content-['Close'] before:content-['Open'] flex justify-center p-2 hover:animate-yip transition ring-2 {user_theme} {user_font}", } - div { class: "flex flex-col space-y-4 py-4 ml-4 mr-4", "{content}\n\n\nPublished: {creation_date}" + div { class: "flex flex-col space-y-4 py-4 ml-4 mr-4", "{content}{publish_string}{creation_date}" } } } }); #[cfg(target_family = "wasm")] - let publish_string = "\u{003C}br\u{003E}\u{003C}br\u{003E}\u{003C}br\u{003E}Published: "; - #[cfg(target_family = "wasm")] return cx.render(rsx! { div { class: "flex p-2 mx-auto max-w-full justify-center", details { class: "group p-4 max-w-fit space-y-4 ring-4 {user_theme} {user_font}",