Skip to content

Commit

Permalink
fixing item table layout
Browse files Browse the repository at this point in the history
  • Loading branch information
patsissons committed Mar 21, 2023
1 parent 1e59bb0 commit c1b00de
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/lib/components/Items/ItemTable.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@
<thead class="border-b border-slate-500">
<tr>
{#if selectedItems}
<th class="w-auto" />
<th class="w-auto !static" />
{/if}
{#if hasOrder}
<th class="p-0 w-10">
<th class="p-0 w-10 !static">
<button
class="btn btn-ghost btn-block h-20 justify-start rounded-none"
on:click={() => handleSort('order')}
Expand Down Expand Up @@ -143,7 +143,7 @@
{#each sortedItems as { id, order, title, description, date, image, url, ratings }}
<tr class="hover">
{#if selectedItems}
<th class="w-0">
<th class="w-0 !static">
<label>
{#if $selectedSet.has(id)}
<input
Expand All @@ -163,7 +163,7 @@
</th>
{/if}
{#if hasOrder}
<td class="p-0">
<td class="p-0 !static">
{#if order != null}
<a
class="btn btn-ghost btn-block h-20 justify-start rounded-none p-4"
Expand All @@ -174,7 +174,7 @@
{/if}
</td>
{/if}
<td class="p-0">
<td class="p-0 !static">
<a
class="btn btn-ghost btn-block h-20 justify-start rounded-none p-4"
href={url}
Expand Down Expand Up @@ -231,7 +231,7 @@
class="btn btn-ghost btn-block h-20 justify-start rounded-none p-4"
href={url}
>
<Rating rating={ratings[id]} />
<Rating class="tooltip-left" rating={ratings[id]} />
</a>
{/if}
</td>
Expand All @@ -241,7 +241,7 @@
</tbody>
<tfoot class="border-t border-slate-500">
<tr>
<th class="px-4">Title</th>
<th class="px-4 !static">Title</th>
{#if descriptionLabel}
<th class="px-4">{descriptionLabel}</th>
{/if}
Expand Down

0 comments on commit c1b00de

Please sign in to comment.