Match rover grid toggle to main map's checkbox style
This commit is contained in:
parent
a8acd8181b
commit
0f885f5c13
1 changed files with 9 additions and 8 deletions
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue