Responsive UI improvements (#41)

* Improved responsive UX for media profiles

* Improved responsiveness for other pages

* Added docs; fixed up stragglers
This commit is contained in:
Kieran
2024-02-29 12:24:54 -08:00
committed by GitHub
parent 9fc2edfd4a
commit 5b29f5036a
14 changed files with 67 additions and 56 deletions
@@ -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 %>
</:item>
</.list>
<ul>
<li :for={{k, v} <- @iterable_attributes} class="mb-2">
<strong><%= k %>:</strong>
<TextComponents.inline_code><%= v %></TextComponents.inline_code>
</li>
</ul>
"""
end