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>
<% end %>
</select>
<button
type="button"
phx-click="toggle_grids"
class={["btn btn-sm btn-square", if(@show_grids, do: "btn-primary", else: "btn-ghost")]}
title="Toggle grid overlay"
>
<.icon name="hero-squares-2x2" class="size-4" />
</button>
<label class="flex items-center gap-2 cursor-pointer">
<input
type="checkbox"
class="toggle toggle-sm toggle-primary"
checked={@show_grids}
phx-click="toggle_grids"
/>
<span class="text-sm">Grid squares</span>
</label>
</div>
<form phx-submit="add_station" class="flex gap-1">