From 18c51e88d1266e553fab98789b92773c61b14793 Mon Sep 17 00:00:00 2001 From: JMARyA Date: Thu, 16 Jan 2025 20:46:22 +0100 Subject: [PATCH] fix --- src/ui/primitives/div.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ui/primitives/div.rs b/src/ui/primitives/div.rs index d5e31d8..b5efb17 100644 --- a/src/ui/primitives/div.rs +++ b/src/ui/primitives/div.rs @@ -83,7 +83,7 @@ impl DivWidget { impl UIWidget for DivWidget { fn can_inherit(&self) -> bool { - self.1 + !self.1 } fn base_class(&self) -> Vec { @@ -98,7 +98,7 @@ impl UIWidget for DivWidget { } } - fn render_with_class(&self, _: &str) -> Markup { + fn render_with_class(&self, class: &str) -> Markup { let inner = html! { @for e in &self.0 { (e.as_ref()) @@ -115,7 +115,7 @@ impl UIWidget for DivWidget { .join(" "); PreEscaped(format!( - "
{} ", + "
{}
", self.extended_class_().join(" "), inner.0 ))