+
+
+ <.icon name="hero-exclamation-circle-solid" class="text-red-500" />
+
Last Error
+
+ {@media_item.last_error}
+
+
<%= if media_file_exists?(@media_item) do %>
@@ -54,14 +62,6 @@
<% end %>
-
-
- <.icon name="hero-exclamation-circle-solid" class="text-red-500" />
-
Last Error
-
- {@media_item.last_error}
-
-
Raw Attributes
diff --git a/lib/pinchflat_web/controllers/pages/page_html/history_table_live.ex b/lib/pinchflat_web/controllers/pages/page_html/history_table_live.ex
index d2cab17..6c104aa 100644
--- a/lib/pinchflat_web/controllers/pages/page_html/history_table_live.ex
+++ b/lib/pinchflat_web/controllers/pages/page_html/history_table_live.ex
@@ -28,10 +28,22 @@ defmodule Pinchflat.Pages.HistoryTableLive do
<.table rows={@records} table_class="text-white">
- <:col :let={media_item} label="Title" class="truncate max-w-xs">
- <.subtle_link href={~p"/sources/#{media_item.source_id}/media/#{media_item}"}>
- {media_item.title}
-
+ <:col :let={media_item} label="Title" class="max-w-xs">
+
+ <.tooltip
+ :if={media_item.last_error}
+ tooltip={media_item.last_error}
+ position="bottom-right"
+ tooltip_class="w-64"
+ >
+ <.icon name="hero-exclamation-circle-solid" class="text-red-500" />
+
+
+ <.subtle_link href={~p"/sources/#{media_item.source_id}/media/#{media_item.id}"}>
+ {media_item.title}
+
+
+
<:col :let={media_item} label="Upload Date">
{DateTime.to_date(media_item.uploaded_at)}