From ca4840b5128f8c1e9f7e38dd3cc3243766967828 Mon Sep 17 00:00:00 2001
From: Graham McIntie
Date: Sun, 15 Feb 2026 15:10:02 -0600
Subject: [PATCH] Fix Preseem devices table for mobile
- Hide Preseem ID, Status, IP, and Linked Device columns on mobile
- Show Preseem ID and status badge inline under name on small screens
- Add overflow-x-auto to table container
---
.../live/org/preseem_devices_live.html.heex | 33 ++++++++++++-------
1 file changed, 21 insertions(+), 12 deletions(-)
diff --git a/lib/towerops_web/live/org/preseem_devices_live.html.heex b/lib/towerops_web/live/org/preseem_devices_live.html.heex
index 70062dfe..6cae1099 100644
--- a/lib/towerops_web/live/org/preseem_devices_live.html.heex
+++ b/lib/towerops_web/live/org/preseem_devices_live.html.heex
@@ -114,7 +114,7 @@
<% else %>
-
+
@@ -126,25 +126,25 @@
|
{t("Preseem ID")}
|
{t("IP Address")}
|
{t("Status")}
|
{t("Linked Device")}
|
@@ -162,16 +162,25 @@
id={"ap-row-#{ap.id}"}
class="hover:bg-gray-50 dark:hover:bg-white/5"
>
-
- {ap.name || "Unnamed"}
- |
-
- {ap.preseem_id}
+ |
+ {ap.name || "Unnamed"}
+
+ {ap.preseem_id}
+
+
+ {humanize_confidence(ap.match_confidence)}
+
|
+ {ap.preseem_id}
+ |
+
{ap.ip_address || "-"}
|
-
+ |
|
-
+ |
<%= if ap.device do %>
<.link
navigate={~p"/devices/#{ap.device.id}"}
|