Match rover grid toggle to main map's checkbox style

This commit is contained in:
Graham McIntire 2026-04-07 17:14:01 -05:00
parent a8acd8181b
commit 0f885f5c13

View file

@ -260,14 +260,15 @@ defmodule MicrowavepropWeb.RoverLive do
<option value={value} selected={value == to_string(@band)}>{label}</option> <option value={value} selected={value == to_string(@band)}>{label}</option>
<% end %> <% end %>
</select> </select>
<button <label class="flex items-center gap-2 cursor-pointer">
type="button" <input
phx-click="toggle_grids" type="checkbox"
class={["btn btn-sm btn-square", if(@show_grids, do: "btn-primary", else: "btn-ghost")]} class="toggle toggle-sm toggle-primary"
title="Toggle grid overlay" checked={@show_grids}
> phx-click="toggle_grids"
<.icon name="hero-squares-2x2" class="size-4" /> />
</button> <span class="text-sm">Grid squares</span>
</label>
</div> </div>
<form phx-submit="add_station" class="flex gap-1"> <form phx-submit="add_station" class="flex gap-1">