Skip to content

Commit fd0324a

Browse files
committed
Adjust input layout on gamut visualizer
1 parent 9d6eadf commit fd0324a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

lib/color/palette/visualizer/gamut_view.ex

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ defmodule Color.Palette.Visualizer.GamutView do
118118
"<label><input type=\"checkbox\" name=\"overlay_palette\" value=\"1\"",
119119
if(overlay_palette, do: " checked", else: ""),
120120
"> Plot tonal palette</label>",
121+
# Wrap the palette controls in a full-width flex row with
122+
# order: 999 so they visually drop to a new line below the
123+
# checkboxes, but the Update button (default order 0,
124+
# rendered after extra_fields) stays on the top row.
125+
"<div style=\"order:999;flex-basis:100%;display:flex;gap:8px;align-items:center\">",
121126
"<label>palette gamut <select name=\"palette_gamut\">",
122127
Enum.map(@palette_gamut_options, fn {atom, label} ->
123128
selected = if atom == palette_gamut, do: " selected", else: ""
@@ -128,6 +133,7 @@ defmodule Color.Palette.Visualizer.GamutView do
128133
" min=\"0.1\" max=\"1.0\" step=\"0.05\" value=\"",
129134
format_ceiling(palette_chroma_ceiling),
130135
"\"></label>",
136+
"</div>",
131137
"<input type=\"hidden\" name=\"submitted\" value=\"1\">"
132138
]
133139
end

0 commit comments

Comments
 (0)