Skip to content

Commit

Permalink
fix(web): album list padding (immich-app#3790)
Browse files Browse the repository at this point in the history
  • Loading branch information
waclaw66 authored Aug 20, 2023
1 parent 476b735 commit 6aed118
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions web/src/routes/(user)/albums/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -154,15 +154,15 @@
<thead
class="mb-4 flex h-12 w-full rounded-md border bg-gray-50 text-immich-primary dark:border-immich-dark-gray dark:bg-immich-dark-gray dark:text-immich-dark-primary"
>
<tr class="flex w-full place-items-center">
<th class="w-1/4 text-center text-sm font-medium">Album title</th>
<th class="w-1/4 text-center text-sm font-medium">Assets</th>
<th class="w-1/4 text-center text-sm font-medium">Updated date</th>
<th class="w-1/4 text-center text-sm font-medium">Created date</th>
<tr class="flex w-full place-items-center p-5">
<th class="w-1/4 text-left text-sm font-medium">Album title</th>
<th class="w-1/4 text-right text-sm font-medium">Assets</th>
<th class="w-1/4 text-right text-sm font-medium">Updated date</th>
<th class="w-1/4 text-right text-sm font-medium">Created date</th>
</tr>
</thead>
<tbody
class="block max-h-[320px] w-full overflow-y-auto rounded-md border dark:border-immich-dark-gray dark:text-immich-dark-fg"
class="block w-full overflow-y-auto rounded-md border dark:border-immich-dark-gray dark:text-immich-dark-fg"
>
{#each $albums as album (album.id)}
<tr
Expand All @@ -171,13 +171,13 @@
on:keydown={(event) => event.key === 'Enter' && goto(`albums/${album.id}`)}
tabindex="0"
>
<td class="text-md w-1/4 text-ellipsis px-2">{album.albumName}</td>
<td class="text-md w-1/4 text-ellipsis px-2">
<td class="text-md w-1/4 text-ellipsis text-left">{album.albumName}</td>
<td class="text-md w-1/4 text-ellipsis text-right">
{album.assetCount}
{album.assetCount == 1 ? `item` : `items`}
</td>
<td class="text-md w-1/4 text-ellipsis px-2">{dateLocaleString(album.updatedAt)}</td>
<td class="text-md w-1/4 text-ellipsis px-2">{dateLocaleString(album.createdAt)}</td>
<td class="text-md w-1/4 text-ellipsis text-right">{dateLocaleString(album.updatedAt)}</td>
<td class="text-md w-1/4 text-ellipsis text-right">{dateLocaleString(album.createdAt)}</td>
</tr>
{/each}
</tbody>
Expand Down

0 comments on commit 6aed118

Please sign in to comment.