From ffb369862b384577ac506f995e8e9c00e1d365b1 Mon Sep 17 00:00:00 2001 From: Kieran Eglin Date: Thu, 29 Feb 2024 11:55:15 -0800 Subject: [PATCH] Improved responsive UX for media profiles --- .../components/core_components.ex | 15 ++++++++----- .../custom_components/button_components.ex | 2 +- .../custom_components/text_components.ex | 14 ++++++++++++ .../layouts/partials/header.html.heex | 2 +- .../layouts/partials/sidebar.html.heex | 12 +++++----- .../components/layouts/root.html.heex | 2 +- .../media_profile_html/index.html.heex | 22 ++++++------------- .../media_profile_form.html.heex | 2 +- .../media_profile_html/show.html.heex | 12 +++++----- 9 files changed, 45 insertions(+), 38 deletions(-) diff --git a/lib/pinchflat_web/components/core_components.ex b/lib/pinchflat_web/components/core_components.ex index 939169b..f9477df 100644 --- a/lib/pinchflat_web/components/core_components.ex +++ b/lib/pinchflat_web/components/core_components.ex @@ -16,9 +16,11 @@ defmodule PinchflatWeb.CoreComponents do """ use Phoenix.Component - alias Phoenix.LiveView.JS import PinchflatWeb.Gettext + alias Phoenix.LiveView.JS + alias PinchflatWeb.CustomComponents.TextComponents + @doc """ Renders a modal. @@ -591,11 +593,12 @@ defmodule PinchflatWeb.CoreComponents do assigns = assign(assigns, iterable_attributes: attrs) ~H""" - <.list> - <:item :for={{k, v} <- @iterable_attributes} title={k}> - <%= v %> - - + """ end diff --git a/lib/pinchflat_web/components/custom_components/button_components.ex b/lib/pinchflat_web/components/custom_components/button_components.ex index 0240f3c..a278577 100644 --- a/lib/pinchflat_web/components/custom_components/button_components.ex +++ b/lib/pinchflat_web/components/custom_components/button_components.ex @@ -23,7 +23,7 @@ defmodule PinchflatWeb.CustomComponents.ButtonComponents do diff --git a/lib/pinchflat_web/components/layouts/partials/sidebar.html.heex b/lib/pinchflat_web/components/layouts/partials/sidebar.html.heex index 88d1c50..2a9536c 100644 --- a/lib/pinchflat_web/components/layouts/partials/sidebar.html.heex +++ b/lib/pinchflat_web/components/layouts/partials/sidebar.html.heex @@ -1,15 +1,15 @@