Uniform backgrounds in stats cards

This commit is contained in:
Claudio Ortolina
2025-09-01 23:18:07 +03:00
parent 16740cec5e
commit 0cea2e8fcd
3 changed files with 4 additions and 4 deletions
@@ -76,7 +76,7 @@
<ul <ul
id="scrobble-activity-albums" id="scrobble-activity-albums"
role="list" role="list"
class="mt-5 rounded-md px-4 py-5 shadow-sm" class="mt-5 p-6 bg-white dark:bg-zinc-800 rounded-md shadow-sm"
phx-update="stream" phx-update="stream"
> >
<li :for={{id, album} <- @streams.recent_albums} id={id} class="group"> <li :for={{id, album} <- @streams.recent_albums} id={id} class="group">
@@ -475,7 +475,7 @@
<.date_picker size="xs" field={f[:current_date]} /> <.date_picker size="xs" field={f[:current_date]} />
</.form> </.form>
</div> </div>
<div class="rounded-md shadow-sm"> <div class="bg-white dark:bg-zinc-800 rounded-md shadow-sm">
<.records_on_this_day <.records_on_this_day
current_date={@current_date} current_date={@current_date}
records={@streams.records_on_this_day} records={@streams.records_on_this_day}
@@ -101,7 +101,7 @@ defmodule MusicLibraryWeb.StatsLive.TopAlbums do
defp top_albums_by_period(assigns) do defp top_albums_by_period(assigns) do
~H""" ~H"""
<div class="mt-4 p-4 rounded-md shadow-sm"> <div class="mt-4 p-4 bg-white dark:bg-zinc-800 rounded-md shadow-sm">
<div class="space-y-2"> <div class="space-y-2">
<div <div
:for={album <- @albums} :for={album <- @albums}
@@ -93,7 +93,7 @@ defmodule MusicLibraryWeb.StatsLive.TopArtists do
def top_artists_by_period(assigns) do def top_artists_by_period(assigns) do
~H""" ~H"""
<div class="mt-4 p-4 rounded-md shadow-sm"> <div class="mt-4 p-4 bg-white dark:bg-zinc-800 rounded-md shadow-sm">
<div class="space-y-2"> <div class="space-y-2">
<div <div
:for={artist <- @artists} :for={artist <- @artists}