fix: remove all compact_mode references from device index template

This commit is contained in:
Graham McIntire 2026-03-10 11:22:40 -05:00
parent bbe7a8c4fa
commit a19155f3de
No known key found for this signature in database

View file

@ -386,7 +386,7 @@
:if={@reorder_mode}
class={[
"pl-4 pr-2 sm:pl-3",
if(@compact_mode, do: "py-1", else: "py-2")
"py-2"
]}
>
<button
@ -404,7 +404,7 @@
"flex items-center gap-2 pr-3 text-inherit no-underline",
@reorder_mode && "pl-2",
!@reorder_mode && "pl-4 sm:pl-3",
if(@compact_mode, do: "py-1", else: "py-2")
"py-2"
]}
>
<span
@ -419,7 +419,7 @@
navigate={~p"/devices/#{row.device.id}"}
class={[
"block px-3 text-inherit no-underline font-mono text-xs text-gray-600 dark:text-gray-300",
if(@compact_mode, do: "py-1", else: "py-2")
"py-2"
]}
>
{row.device.ip_address}
@ -430,7 +430,7 @@
navigate={~p"/devices/#{row.device.id}"}
class={[
"block px-3 text-inherit no-underline",
if(@compact_mode, do: "py-1", else: "py-2")
"py-2"
]}
>
<span class="inline-flex items-center gap-1">
@ -457,7 +457,7 @@
navigate={~p"/devices/#{row.device.id}"}
class={[
"flex items-center gap-1.5 px-3 text-inherit no-underline",
if(@compact_mode, do: "py-1", else: "py-2")
"py-2"
]}
>
<.icon
@ -476,7 +476,7 @@
navigate={~p"/devices/#{row.device.id}"}
class={[
"block px-3 text-inherit no-underline",
if(@compact_mode, do: "py-1", else: "py-2")
"py-2"
]}
>
<% {text, color} = last_seen_text(row.device.last_checked_at) %>
@ -488,7 +488,7 @@
navigate={~p"/devices/#{row.device.id}"}
class={[
"block px-3 text-inherit no-underline",
if(@compact_mode, do: "py-1", else: "py-2")
"py-2"
]}
>
<div class="flex items-center gap-2">
@ -512,7 +512,7 @@
navigate={~p"/devices/#{row.device.id}"}
class={[
"block px-3 text-inherit no-underline",
if(@compact_mode, do: "py-1", else: "py-2")
"py-2"
]}
>
<%= if sub_text = format_subscriber_count(row.subscribers) do %>