-
-
- {gettext("On This day")}
-
- <.form
- :let={f}
- for={to_form(%{"current_date" => @current_date})}
- phx-change="set_current_date"
- >
- <.date_picker size="xs" field={f[:current_date]}>
- <:outer_suffix>
- <.button
- size="xs"
- type="button"
- phx-click={
- JS.push("set_current_date", value: %{"current_date" => Date.utc_today()})
- }
- >
- Today
-
-
-
-
-
+
+ {gettext("On This day")}
+
+ <.form
+ :let={f}
+ for={to_form(%{"current_date" => @current_date})}
+ phx-change="set_current_date"
+ class="mt-4 w-fit"
+ >
+ <.date_picker size="xs" field={f[:current_date]}>
+ <:outer_suffix>
+ <.button
+ size="xs"
+ type="button"
+ phx-click={
+ JS.push("set_current_date", value: %{"current_date" => Date.utc_today()})
+ }
+ >
+ Today
+
+
+
+
<.records_on_this_day
current_date={@current_date}
@@ -101,6 +98,8 @@ defmodule MusicLibraryWeb.StatsLive.Index do
/>