align preview with settings

This commit is contained in:
Gavin McDonald
2025-10-10 18:15:45 -04:00
parent 87374b6c44
commit 96c01487f4

View File

@@ -10,6 +10,13 @@
#{@preview_background}
#{if @label_too_long, do: "border-danger", else: "border-primary"}
#{if @label_too_long, do: "outline-danger", else: @outline != "none" && "outline-#{@outline}"}
#{
cond do
@align === "left" -> "text-left"
@align === "center" -> "text-center"
@align === "right" -> "text-right"
end
}
"}
style={"
aspect-ratio: 4 / 3;