neiam
/diogramos
diogramos
public · Issues · Pulls · Labels · Forks · Compare · Actions success · Badges · Packages
⭐
Log in to mark this repository.
Credo: multi-selection by pattern, not length/1
9e7d007 · Gabe Morell · 2026-11-04 21:18
Files changed
modified
lib/diogramos_web/live/canvas_live/edit.ex
+1
−2
@@ -2270,8 +2270,7 @@ defmodule DiogramosWeb.CanvasLive.Edit do
| 2270 | 2270 | """ |
| 2271 | 2271 | end |
| 2272 | 2272 | |
| 2273 | − defp property_panel(%{selection: selection} = assigns) | |
| 2274 | − when length(selection) > 1 do | |
| 2273 | + defp property_panel(%{selection: [_, _ | _] = selection} = assigns) do | |
| 2275 | 2274 | assigns = |
| 2276 | 2275 | assigns |
| 2277 | 2276 | |> assign(:n_elements, length(selection_element_ids(selection))) |
Parents: d62a15b