File tree Expand file tree Collapse file tree
lib/color/palette/visualizer Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments