From 7809a25f2d94f1f5d3161b29bdbca641fe0457de Mon Sep 17 00:00:00 2001 From: Kieran Date: Thu, 29 Feb 2024 17:51:54 -0800 Subject: [PATCH] Responsive UI improvements (#41) * Improved responsive UX for media profiles * Improved responsiveness for other pages * Added docs; fixed up stragglers --- .../components/core_components.ex | 15 ++++++++----- .../custom_components/button_components.ex | 2 +- .../custom_components/text_components.ex | 17 ++++++++++++++ .../layouts/partials/header.html.heex | 2 +- .../layouts/partials/sidebar.html.heex | 15 +++++++------ .../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 +++++----- .../sources/source_html/index.html.heex | 14 +++++------- .../sources/source_html/show.html.heex | 10 +++++---- .../sources/source_html/source_form.html.heex | 2 +- .../media_profile_controller_test.exs | 4 ++-- .../controllers/source_controller_test.exs | 4 ++-- 14 files changed, 67 insertions(+), 56 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..13b72e1 100644 --- a/lib/pinchflat_web/components/layouts/partials/sidebar.html.heex +++ b/lib/pinchflat_web/components/layouts/partials/sidebar.html.heex @@ -1,15 +1,18 @@