This commit is contained in:
JMARyA 2025-01-16 20:46:22 +01:00
parent bcb69805ef
commit 18c51e88d1
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263

View file

@ -83,7 +83,7 @@ impl DivWidget {
impl UIWidget for DivWidget {
fn can_inherit(&self) -> bool {
self.1
!self.1
}
fn base_class(&self) -> Vec<String> {
@ -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!(
"<div class='{}' {attrs}> {} </a>",
"<div class='{} {class}' {attrs}> {} </div>",
self.extended_class_().join(" "),
inner.0
))