Skip to content

Commit

Permalink
fix item card note whitespace (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmintey authored Oct 18, 2023
1 parent 9c0172b commit f68c28d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/lib/components/wishlists/ItemCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
export let user: PartialUser & { userId: string };
export let showFor = false;
const modalStore = getModalStore();
const toastStore = getToastStore();
const modalStore = getModalStore();
const toastStore = getToastStore();
let image_url: string;
const itemAPI = new ItemAPI(item.id);
Expand Down Expand Up @@ -146,12 +146,12 @@

<span class="text-base md:text-lg">
{#if showFor}
For <span class="font-bold text-secondary-700-200-token">{item.user?.name}</span>
For <span class="text-secondary-700-200-token font-bold">{item.user?.name}</span>
{:else}
Added by <span class="font-bold text-secondary-700-200-token">{item.addedBy?.name}</span>
Added by <span class="text-secondary-700-200-token font-bold">{item.addedBy?.name}</span>
{/if}
</span>
<p>{item.note}</p>
<p class="whitespace-pre-wrap">{item.note}</p>
</div>
</div>

Expand Down Expand Up @@ -182,7 +182,7 @@
<span>Claimed by {item.pledgedBy?.name}</span>
{/if}
{:else}
<button class="btn btn-sm variant-filled-secondary md:btn" on:click={() => handleClaim()}>
<button class="variant-filled-secondary btn btn-sm md:btn" on:click={() => handleClaim()}>
Claim
</button>
{/if}
Expand Down

0 comments on commit f68c28d

Please sign in to comment.