Skip to content

Commit

Permalink
Stop the updating label from messing with the table column (#1821)
Browse files Browse the repository at this point in the history
The `invisible` CSS class keeps the element in the dom but just doesn't
show it.

Its useful for cases where adding or removing it (or even using hidden)
changes sizing and positioning of other elements.
  • Loading branch information
joshk authored Jan 23, 2025
1 parent 282a44f commit bf0efe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nerves_hub_web/live/devices/index-new.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
<.link navigate={~p"/org/#{@org.name}/#{@product.name}/devices/#{device.identifier}"} class={"ff-m #{firmware_update_status(device)}"} title={firmware_update_title(device)}>
{device.identifier}
</.link>
<span :if={@progress[device.id]} class="flex items-center gap-1 ml-2 pl-2.5 pr-2.5 py-0.5 border border-zinc-700 rounded-full bg-zinc-800">
<span class={["flex items-center gap-1 ml-2 pl-2.5 pr-2.5 py-0.5 border border-zinc-700 rounded-full bg-zinc-800", !@progress[device.id] && "invisible"]}>
<span class="text-xs text-zinc-300 tracking-tight">updating</span>
</span>
</div>
Expand Down

0 comments on commit bf0efe9

Please sign in to comment.