From e8a5e72e84192fad5e949a5d939f7cada329c9ab Mon Sep 17 00:00:00 2001 From: Kieran Eglin Date: Sun, 19 May 2024 14:54:03 -0700 Subject: [PATCH] Removed standalone show buttons from in-app tables --- .../media_profiles/media_profile_html/index.html.heex | 5 ++--- .../media_profiles/media_profile_html/show.html.heex | 5 ++--- .../controllers/sources/source_html/media_item_table_live.ex | 5 ++--- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/lib/pinchflat_web/controllers/media_profiles/media_profile_html/index.html.heex b/lib/pinchflat_web/controllers/media_profiles/media_profile_html/index.html.heex index f5e1ae6..e3a2dee 100644 --- a/lib/pinchflat_web/controllers/media_profiles/media_profile_html/index.html.heex +++ b/lib/pinchflat_web/controllers/media_profiles/media_profile_html/index.html.heex @@ -23,9 +23,8 @@ <:col :let={media_profile} label="Preferred Resolution"> <%= media_profile.preferred_resolution %> - <:col :let={media_profile} label="" class="flex place-content-evenly"> - <.icon_link href={~p"/media_profiles/#{media_profile.id}"} icon="hero-eye" class="mx-1" /> - <.icon_link href={~p"/media_profiles/#{media_profile.id}/edit"} icon="hero-pencil-square" class="mx-1" /> + <:col :let={media_profile} label="" class="flex justify-end"> + <.icon_link href={~p"/media_profiles/#{media_profile.id}/edit"} icon="hero-pencil-square" class="mr-4" /> diff --git a/lib/pinchflat_web/controllers/media_profiles/media_profile_html/show.html.heex b/lib/pinchflat_web/controllers/media_profiles/media_profile_html/show.html.heex index 2168292..ef0629f 100644 --- a/lib/pinchflat_web/controllers/media_profiles/media_profile_html/show.html.heex +++ b/lib/pinchflat_web/controllers/media_profiles/media_profile_html/show.html.heex @@ -40,9 +40,8 @@ <:col :let={source} label="Should Download?"> <.icon name={if source.download_media, do: "hero-check", else: "hero-x-mark"} /> - <:col :let={source} label="" class="flex place-content-evenly"> - <.icon_link href={~p"/sources/#{source.id}"} icon="hero-eye" class="mx-1" /> - <.icon_link href={~p"/sources/#{source.id}/edit"} icon="hero-pencil-square" class="mx-1" /> + <:col :let={source} label="" class="flex justify-end"> + <.icon_link href={~p"/sources/#{source.id}/edit"} icon="hero-pencil-square" class="mr-4" /> diff --git a/lib/pinchflat_web/controllers/sources/source_html/media_item_table_live.ex b/lib/pinchflat_web/controllers/sources/source_html/media_item_table_live.ex index a2f09cc..7ffac3c 100644 --- a/lib/pinchflat_web/controllers/sources/source_html/media_item_table_live.ex +++ b/lib/pinchflat_web/controllers/sources/source_html/media_item_table_live.ex @@ -30,9 +30,8 @@ defmodule Pinchflat.Sources.MediaItemTableLive do <%= StringUtils.truncate(media_item.title, 50) %> - <:col :let={media_item} label="" class="flex place-content-evenly"> - <.icon_link href={~p"/sources/#{@source.id}/media/#{media_item.id}"} icon="hero-eye" class="mx-1" /> - <.icon_link href={~p"/sources/#{@source.id}/media/#{media_item.id}/edit"} icon="hero-pencil-square" class="mx-1" /> + <:col :let={media_item} label="" class="flex justify-end"> + <.icon_link href={~p"/sources/#{@source.id}/media/#{media_item.id}/edit"} icon="hero-pencil-square" class="mr-4" />