Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix item card note whitespace #57

Merged
merged 1 commit into from
Oct 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading