From 96c01487f42c0a731d2842d9f6474099c089aa8a Mon Sep 17 00:00:00 2001 From: Gavin McDonald Date: Fri, 10 Oct 2025 18:15:45 -0400 Subject: [PATCH] align preview with settings --- lib/labelmaker_web/live/home.html.heex | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/labelmaker_web/live/home.html.heex b/lib/labelmaker_web/live/home.html.heex index f522254..43f2a00 100644 --- a/lib/labelmaker_web/live/home.html.heex +++ b/lib/labelmaker_web/live/home.html.heex @@ -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;