From 1b9484db20a2da0a4212e0d1d4b39a39825ad62e Mon Sep 17 00:00:00 2001 From: timujeen Date: Mon, 16 Feb 2026 23:04:28 +0000 Subject: [PATCH] Remove redundant mb-4 wrapper div around back buttons in 4 admin pages Standardize back button markup to match the ~40 other admin pages where the back link is a direct child of
, not wrapped in an extra
. Files: modules, pages, maintenance settings, comments settings. --- lib/modules/comments/web/settings.html.heex | 14 ++++++-------- lib/modules/maintenance/web/settings.html.heex | 16 +++++++--------- lib/phoenix_kit_web/live/modules.html.heex | 14 ++++++-------- .../live/modules/pages/pages.html.heex | 16 +++++++--------- 4 files changed, 26 insertions(+), 34 deletions(-) diff --git a/lib/modules/comments/web/settings.html.heex b/lib/modules/comments/web/settings.html.heex index 42c81841..eaa9b062 100644 --- a/lib/modules/comments/web/settings.html.heex +++ b/lib/modules/comments/web/settings.html.heex @@ -8,14 +8,12 @@
<%!-- Header --%>
-
- <.link - navigate={PhoenixKit.Utils.Routes.path("/admin/settings")} - class="btn btn-outline btn-primary btn-sm" - > - <.icon name="hero-arrow-left" class="w-4 h-4" /> Back to Settings - -
+ <.link + navigate={PhoenixKit.Utils.Routes.path("/admin/settings")} + class="btn btn-outline btn-primary btn-sm" + > + <.icon name="hero-arrow-left" class="w-4 h-4" /> Back to Settings +

Comments Settings

diff --git a/lib/modules/maintenance/web/settings.html.heex b/lib/modules/maintenance/web/settings.html.heex index 043ba67a..97eba95f 100644 --- a/lib/modules/maintenance/web/settings.html.heex +++ b/lib/modules/maintenance/web/settings.html.heex @@ -9,15 +9,13 @@
<%!-- Header Section --%>
-
- <%!-- Back Button --%> - <.link - navigate={PhoenixKit.Utils.Routes.path("/admin/modules")} - class="btn btn-outline btn-primary btn-sm" - > - <.icon name="hero-arrow-left" class="w-4 h-4" /> Back to Modules - -
+ <%!-- Back Button --%> + <.link + navigate={PhoenixKit.Utils.Routes.path("/admin/modules")} + class="btn btn-outline btn-primary btn-sm" + > + <.icon name="hero-arrow-left" class="w-4 h-4" /> Back to Modules + <%!-- Title Section --%>

diff --git a/lib/phoenix_kit_web/live/modules.html.heex b/lib/phoenix_kit_web/live/modules.html.heex index a9826106..933cebf1 100644 --- a/lib/phoenix_kit_web/live/modules.html.heex +++ b/lib/phoenix_kit_web/live/modules.html.heex @@ -9,14 +9,12 @@
<%!-- Header Section --%>
-
- <.link - navigate={PhoenixKit.Utils.Routes.path("/admin")} - class="btn btn-outline btn-primary btn-sm" - > - <.icon name="hero-arrow-left" class="w-4 h-4 mr-2" /> Back to Dashboard - -
+ <.link + navigate={PhoenixKit.Utils.Routes.path("/admin")} + class="btn btn-outline btn-primary btn-sm" + > + <.icon name="hero-arrow-left" class="w-4 h-4 mr-2" /> Back to Dashboard +

Modules

diff --git a/lib/phoenix_kit_web/live/modules/pages/pages.html.heex b/lib/phoenix_kit_web/live/modules/pages/pages.html.heex index f0f7e05e..9980d3e7 100644 --- a/lib/phoenix_kit_web/live/modules/pages/pages.html.heex +++ b/lib/phoenix_kit_web/live/modules/pages/pages.html.heex @@ -9,15 +9,13 @@
<%!-- Header Section --%>
-
- <%!-- Back Button --%> - <.link - navigate={PhoenixKit.Utils.Routes.path("/admin/modules")} - class="btn btn-outline btn-primary btn-sm" - > - Back to Modules - -
+ <%!-- Back Button --%> + <.link + navigate={PhoenixKit.Utils.Routes.path("/admin/modules")} + class="btn btn-outline btn-primary btn-sm" + > + Back to Modules + <%!-- Title Section --%>