diff --git a/src/layouts/PlaylistPageTab.astro b/src/layouts/PlaylistPageTab.astro index 34b4103..a014068 100644 --- a/src/layouts/PlaylistPageTab.astro +++ b/src/layouts/PlaylistPageTab.astro @@ -17,7 +17,7 @@ const { playlist, title, description, errorOccurred } = Astro.props as Props;
diff --git a/src/pages/playlists/[playlistId]/snapshots/[commitSha].astro b/src/pages/playlists/[playlistId]/snapshots/[commitSha].astro index f2df3a7..107a9ae 100644 --- a/src/pages/playlists/[playlistId]/snapshots/[commitSha].astro +++ b/src/pages/playlists/[playlistId]/snapshots/[commitSha].astro @@ -4,7 +4,7 @@ import formatDuration from 'format-duration'; import PlaylistPageTab from '@/layouts/PlaylistPageTab.astro'; import { getPlaylistLayoutProps } from '@/utils/getPlaylistLayoutProps'; -import { getFormattedDate } from '@/utils/getFormattedDate'; +import { formatDate } from '@/utils/formatDate'; import type { PlaylistSnapshot } from '@/models/playlist-snapshot'; @@ -42,7 +42,7 @@ if (layoutProps.playlist) {

{layoutProps.description}

-
+
@@ -60,17 +60,15 @@ if (layoutProps.playlist) { snapshot?.tracks.map((track) => ( - - + + )) } diff --git a/src/styles/global.css b/src/styles/global.css index 63708e2..856fbf4 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -45,12 +45,8 @@ table.datatable td { @apply border-r-[1px]; } -table.datatable thead { - @apply lg:table-header-group hidden; -} - -table.datatable td { - @apply lg:table-cell flex justify-between; +table.datatable th:first-child { + @apply static; } .search-suggestion {
- Title {track.name} - Artist(s) {track.artists.map((artist) => ( - Album - Date added - {getFormattedDate(track.added_at)} - - Duration - {formatDuration(track.duration_ms)} - {formatDate(track.added_at)}{formatDuration(track.duration_ms)}