Okay one more small fix.

This commit is contained in:
Ada Werefox 2023-06-14 16:07:26 -05:00
parent c4a0938bf4
commit 1aebcf0200

View File

@ -61,20 +61,19 @@ pub fn PoemContent(cx: Scope<VoidProps>) -> Element {
.expect("Grabbed poem struct from database.") .expect("Grabbed poem struct from database.")
.creation_date .creation_date
.clone(); .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"))] #[cfg(any(target_family = "unix", target_family = "windows"))]
return cx.render(rsx! { return cx.render(rsx! {
div { class: "flex p-2 mx-auto max-w-full justify-center", 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}", 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}", 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")] #[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! { return cx.render(rsx! {
div { class: "flex p-2 mx-auto max-w-full justify-center", 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}", details { class: "group p-4 max-w-fit space-y-4 ring-4 {user_theme} {user_font}",