better newline support

This commit is contained in:
Gavin McDonald
2025-09-01 15:18:11 -04:00
parent e36720c011
commit c5acb7ac33
4 changed files with 57 additions and 26 deletions

View File

@@ -9,6 +9,7 @@ defmodule LabelmakerWeb.Constants do
link: "",
outline: "none",
size: "72",
rows: 2,
width: ""
}
@@ -75,6 +76,9 @@ defmodule LabelmakerWeb.Constants do
@max_label_length 1024
@max_label_error "1024-character maximum"
@rows_min 2
@rows_max 8
@sizes 16..128
|> Enum.to_list()
|> Enum.take_every(8)
@@ -101,5 +105,7 @@ defmodule LabelmakerWeb.Constants do
def permitted_gravity, do: @gravity
def permitted_keys, do: @permitted_keys
def preview, do: @preview
def rows_min, do: @rows_min
def rows_max, do: @rows_max
def sizes, do: @sizes
end