feat: Finalizes room-pressure view.

This commit is contained in:
2025-03-01 11:46:47 -05:00
parent 5630820575
commit eaf0387899
8 changed files with 108 additions and 35 deletions

View File

@@ -24,10 +24,12 @@ public struct WarningBox<Header: HTML>: HTML, Sendable {
public var content: some HTML<HTMLTag.div> {
div(.id("warnings")) {
header(warnings)
ul(.class("list-disc mx-10")) {
for warning in warnings {
li { warning }
if warnings.count > 0 {
header(warnings)
ul(.class("list-disc mx-10")) {
for warning in warnings {
li { warning }
}
}
}
}