better newline support
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user