Canonicalize tailwind classes
This commit is contained in:
@@ -68,7 +68,7 @@ defmodule MusicLibraryWeb.CollectionLive.Index do
|
||||
data-slot="icon"
|
||||
/>
|
||||
<span class="sr-only sm:not-sr-only">{gettext("Chat")}</span>
|
||||
<span :if={@chat_count > 0} class="sr-only sm:not-sr-only text-xs font-medium">
|
||||
<span :if={@chat_count > 0} class="sr-only text-xs font-medium sm:not-sr-only">
|
||||
{@chat_count}
|
||||
</span>
|
||||
</.button>
|
||||
|
||||
@@ -400,7 +400,7 @@ defmodule MusicLibraryWeb.RecordSetLive.Index do
|
||||
<h3 class="text-sm/5 font-semibold text-wrap text-zinc-700 dark:text-zinc-300">
|
||||
{item.record.title}
|
||||
</h3>
|
||||
<p class="flex gap-1 items-center pointer-events-none text-sm font-medium text-zinc-500">
|
||||
<p class="pointer-events-none flex items-center gap-1 text-sm font-medium text-zinc-500">
|
||||
<.release_status_tooltip record={item.record} />
|
||||
{format_label(item.record.format)} · {type_label(item.record.type)}
|
||||
</p>
|
||||
|
||||
@@ -99,7 +99,7 @@ defmodule MusicLibraryWeb.RecordSetLive.RecordPicker do
|
||||
<p class="truncate text-xs text-zinc-500 dark:text-zinc-400">
|
||||
{Record.artist_names(@record)}
|
||||
</p>
|
||||
<p class="flex items-center gap-1 mt-1 text-xs/5 text-zinc-500 dark:text-zinc-400">
|
||||
<p class="mt-1 flex items-center gap-1 text-xs/5 text-zinc-500 dark:text-zinc-400">
|
||||
<.release_status_tooltip record={@record} />
|
||||
{Record.format_release_date(@record.release_date)} · {format_label(@record.format)} · {type_label(
|
||||
@record.type
|
||||
|
||||
@@ -134,7 +134,7 @@ defmodule MusicLibraryWeb.RecordSetLive.Show do
|
||||
<h3 class="text-sm/5 font-semibold text-wrap text-zinc-700 dark:text-zinc-300">
|
||||
{item.record.title}
|
||||
</h3>
|
||||
<p class="flex gap-1 items-center pointer-events-none text-sm font-medium text-zinc-500">
|
||||
<p class="pointer-events-none flex items-center gap-1 text-sm font-medium text-zinc-500">
|
||||
<.release_status_tooltip record={item.record} />
|
||||
{format_label(item.record.format)} · {type_label(item.record.type)}
|
||||
</p>
|
||||
|
||||
@@ -310,7 +310,7 @@ defmodule MusicLibraryWeb.StatsLive.Index do
|
||||
<div class="relative flex items-center justify-between space-x-3">
|
||||
<div class="flex min-w-0 items-center justify-between space-x-4">
|
||||
<img
|
||||
class="size-12 object-cover rounded-md shadow-sm"
|
||||
class="size-12 rounded-md object-cover shadow-sm"
|
||||
src={track_or_album_cover_url(album, cover_hash)}
|
||||
alt={album.metadata.title}
|
||||
onerror={"this.src = '" <> ~p"/images/cover-not-found.png" <> "';"}
|
||||
@@ -388,7 +388,7 @@ defmodule MusicLibraryWeb.StatsLive.Index do
|
||||
<div class="relative flex items-center justify-between space-x-3">
|
||||
<div class="flex min-w-0 items-center justify-between space-x-4">
|
||||
<img
|
||||
class="size-12 object-cover rounded-md shadow-sm"
|
||||
class="size-12 rounded-md object-cover shadow-sm"
|
||||
src={track_or_album_cover_url(track, cover_hash)}
|
||||
alt={track.title}
|
||||
onerror={"this.src = '" <> ~p"/images/cover-not-found.png" <> "';"}
|
||||
@@ -522,7 +522,7 @@ defmodule MusicLibraryWeb.StatsLive.Index do
|
||||
~H"""
|
||||
<.section>
|
||||
<:title>{gettext("Records")}</:title>
|
||||
<div class="mt-5 grid grid-cols-3 gap-5 sm:grid-cols-5 min-h-35">
|
||||
<div class="mt-5 grid min-h-35 grid-cols-3 gap-5 sm:grid-cols-5">
|
||||
<.album_preview
|
||||
record={@latest_record}
|
||||
title={gettext("Latest purchase")}
|
||||
|
||||
@@ -82,7 +82,7 @@ defmodule MusicLibraryWeb.StatsLive.TopAlbums do
|
||||
class={[
|
||||
"cursor-pointer",
|
||||
status == :mixed &&
|
||||
"bg-linear-50 from-success/10 to-warning/30 dark:from-success/20 dark:to-warning/60 text-foreground-success-soft"
|
||||
"dark:from-success/20 dark:to-warning/60 from-success/10 text-foreground-success-soft to-warning/30 bg-linear-50"
|
||||
]}
|
||||
>
|
||||
{@album.play_count}
|
||||
|
||||
Reference in New Issue
Block a user