Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion apps/www/src/lib/components/app/meny/ProductPreview.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
</script>

<div
class="bg-background relative flex h-full flex-col overflow-hidden rounded-xl border-2 shadow-md"
class="relative flex h-full flex-col overflow-hidden rounded-xl border-2 bg-background shadow-md"
>
<div class="relative border-b-2">
{#if !disableWishlist}
Expand Down
2 changes: 1 addition & 1 deletion apps/www/src/lib/components/portal/Header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@

<svelte:window onresize={handleResize} />

<div class="bg-background sticky top-0 z-10">
<div class="sticky top-0 z-10 bg-background">
<header class="flex items-center justify-between">
<a href="/" class="mr-10">
<img src={logo} alt="Logo" class="h-12 w-12" />
Expand Down
2 changes: 1 addition & 1 deletion apps/www/src/routes/portal/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</script>

<div class="flex min-h-screen flex-col">
<div class="bg-background sticky top-0 z-10">
<div class="sticky top-0 z-10 bg-background">
<div class="mx-auto max-w-screen-lg">
<Header notifications={data.notifications} />
</div>
Expand Down
3 changes: 2 additions & 1 deletion apps/www/src/routes/portal/claim-beer/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export const actions: Actions = {

const data = await request.formData();
const productId = data.get('productId')?.toString();
const productName = data.get('productName')?.toString();
const creditCostStr = data.get('creditCost')?.toString();

if (!productId || !creditCostStr) {
Expand Down Expand Up @@ -82,7 +83,7 @@ export const actions: Actions = {
return locals.notificationService.create(
user.userId,
'Produkt claimet',
`${locals.user?.name} har claimed productet ${productId} for ${creditCost} credits.`
`${locals.user?.name} har claimed produktet ${productName} for ${creditCost} credits.`
);
})
);
Expand Down
2 changes: 1 addition & 1 deletion apps/www/src/routes/portal/claim-beer/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@

<div class="flex w-full flex-col gap-8 sm:mx-auto sm:max-w-screen-sm md:max-w-full md:flex-row">
<div>
<div class="bg-background mb-4 items-center justify-center rounded-xl border-2 p-4 shadow-md">
<div class="mb-4 items-center justify-center rounded-xl border-2 bg-background p-4 shadow-md">
<div class="bg-backg text-2xl font-bold text-gray-900">
{unclaimedBeers}
{unclaimedBeers === 1 ? 'bong' : 'bonger'}
Expand Down
2 changes: 1 addition & 1 deletion apps/www/src/routes/portal/notifikasjoner/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<form action="?/archive" method="post" use:enhance>
<input type="hidden" name="notificationId" value={notification.id} />
<button>
<Check class="hover:bg-background size-9 rounded-lg p-2 text-green-600" />
<Check class="size-9 rounded-lg p-2 text-green-600 hover:bg-background" />
</button>
</form>
</div>
Expand Down