Fix how long ago for records with year release dates
This commit is contained in:
@@ -299,7 +299,7 @@ defmodule MusicLibraryWeb.StatsComponents do
|
|||||||
|
|
||||||
~H"""
|
~H"""
|
||||||
<span
|
<span
|
||||||
:if={same_year?(@years)}
|
:if={@years && same_year?(@years)}
|
||||||
class={[
|
class={[
|
||||||
"text-xs/5",
|
"text-xs/5",
|
||||||
"animate-shine bg-linear-to-r from-red-500 via-red-200 to-red-700 bg-clip-text font-semibold text-transparent"
|
"animate-shine bg-linear-to-r from-red-500 via-red-200 to-red-700 bg-clip-text font-semibold text-transparent"
|
||||||
@@ -308,7 +308,7 @@ defmodule MusicLibraryWeb.StatsComponents do
|
|||||||
{gettext("Today")}
|
{gettext("Today")}
|
||||||
</span>
|
</span>
|
||||||
<span
|
<span
|
||||||
:if={!same_year?(@years)}
|
:if={@years && !same_year?(@years)}
|
||||||
class={[
|
class={[
|
||||||
"text-xs/5",
|
"text-xs/5",
|
||||||
normal_year?(@years) && "text-zinc-500 dark:text-zinc-400",
|
normal_year?(@years) && "text-zinc-500 dark:text-zinc-400",
|
||||||
|
|||||||
Reference in New Issue
Block a user