From bb51c7489eea009a11e8cfecad5bd4454237124d Mon Sep 17 00:00:00 2001 From: Alexander Don Date: Mon, 30 Mar 2026 23:31:00 +0300 Subject: [PATCH] Fix media selector modal mobile responsiveness Stack header buttons below title on mobile, reduce padding on small screens, right-align buttons on desktop. Buttons stretch to fill width on mobile and auto-size on desktop. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../components/media_selector_modal.html.heex | 62 +++++++++++-------- 1 file changed, 36 insertions(+), 26 deletions(-) diff --git a/lib/phoenix_kit_web/live/components/media_selector_modal.html.heex b/lib/phoenix_kit_web/live/components/media_selector_modal.html.heex index de6fad262..00668e185 100644 --- a/lib/phoenix_kit_web/live/components/media_selector_modal.html.heex +++ b/lib/phoenix_kit_web/live/components/media_selector_modal.html.heex @@ -9,7 +9,7 @@ phx-target={@myself} > <%!-- Modal Container --%> -
+
<%!-- Modal Content (click inside shouldn't close) --%>
<%!-- Header with Actions --%> -
-
-
-

- Select Media -

-

- <%= if @mode == :single do %> - Click on an image to select it - <% else %> - Select one or more images - <% end %> - <%= if MapSet.size(@selected_uuids) > 0 do %> - - {MapSet.size(@selected_uuids)} selected - - <% end %> -

+
+
+
+
+

+ Select Media +

+

+ <%= if @mode == :single do %> + Click on an image to select it + <% else %> + Select one or more images + <% end %> + <%= if MapSet.size(@selected_uuids) > 0 do %> + + {MapSet.size(@selected_uuids)} selected + + <% end %> +

+
+
-
+
<%!-- Scrollable Content Area --%> -
+
<%!-- No Buckets Warning --%> <%= if !@has_buckets do %>
@@ -91,7 +101,7 @@ <%!-- Drag and Drop Zone --%>