🚑️ fix
All checks were successful
ci/woodpecker/push/test Pipeline was successful

This commit is contained in:
JMARyA 2025-02-25 11:00:47 +01:00
parent c10105ad75
commit 4688968a32
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263

View file

@ -820,7 +820,9 @@ impl UIWidget for TabWidget {
div id=(format!("#tab_content_{tab_id}")) {
@for (_, id, body) in &self.content {
div class="hidden rounded-lg" id=(id) role="tabpanel" aria-labelledby=(format!("{id}_tab")) {
div class=(format!("{} rounded-lg",
if *id == self.active { "" } else { "hidden" }
)) id=(id) role="tabpanel" aria-labelledby=(format!("{id}_tab")) {
(body)
}
}