From 3cb59060238fda911fc6cf0d26b59dc64652ddd5 Mon Sep 17 00:00:00 2001 From: Adrien Maston Date: Thu, 26 Feb 2026 19:50:23 +0100 Subject: [PATCH] Tweak buttons and let panel grow more --- saas/app/views/devices/index.html.erb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/saas/app/views/devices/index.html.erb b/saas/app/views/devices/index.html.erb index f5c8fc73c..4eaeffe33 100644 --- a/saas/app/views/devices/index.html.erb +++ b/saas/app/views/devices/index.html.erb @@ -1,11 +1,11 @@ <% @page_title = "Registered devices" %> -
+
<% if @devices.any? %>

Registered devices

-
    +
      <% @devices.each do |device| %>
    • @@ -15,7 +15,10 @@ <%= tag.time "Added #{time_ago_in_words(device.created_at)} ago", datetime: device.created_at.to_i, class: "txt-subtle txt-x-small" %>
      - <%= button_to "Remove", saas.device_path(device), method: :delete, class: "btn txt-small", data: { confirm: "Remove this device?" }, form: { class: "flex-item-no-shrink" } %> + <%= button_to saas.device_path(device), method: :delete, class: "btn btn--circle-mobile txt-small", data: { confirm: "Remove this device?" }, form: { class: "flex-item-no-shrink" } do %> + <%= icon_tag "trash", class: "icon--mobile-only" %> + Remove + <% end %>
    • <% end %>