Skip to content

Commit eab4501

Browse files
committed
fix: avatars
1 parent 35798e7 commit eab4501

2 files changed

Lines changed: 10 additions & 7 deletions

File tree

platforms/blabsy/.env.development

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Dev URL
2-
NEXT_PUBLIC_URL=http://localhost
3-
NEXT_PUBLIC_BASE_URL=http://192.168.0.226:4444
2+
NEXT_PUBLIC_URL=https://blabsy.w3ds-prototype.merul.org
3+
NEXT_PUBLIC_BASE_URL=https://blabsy.w3ds-prototype.merul.org
44

55
# Emulator
66
NEXT_PUBLIC_USE_EMULATOR=false

platforms/pictique/src/lib/fragments/CreatePostModal/CreatePostModal.svelte

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,14 @@
5151
<button
5252
type="button"
5353
class="rounded-full p-2 hover:bg-gray-100"
54-
on:click={closeCreatePostModal}
54+
onclick={closeCreatePostModal}
5555
>
5656
5757
</button>
5858
</div>
5959

6060
<div class="mb-4">
61+
<!-- svelte-ignore element_invalid_self_closing_tag -->
6162
<textarea
6263
bind:value={text}
6364
placeholder="What's on your mind?"
@@ -70,6 +71,7 @@
7071
<div class="mb-4 grid grid-cols-2 gap-4">
7172
{#each images as image, index}
7273
<div class="relative">
74+
<!-- svelte-ignore a11y_img_redundant_alt -->
7375
<img
7476
src={image}
7577
alt="Post image"
@@ -78,7 +80,7 @@
7880
<button
7981
type="button"
8082
class="absolute top-2 right-2 rounded-full bg-black/50 p-1 text-white hover:bg-black/70"
81-
on:click={() => removeImage(index)}
83+
onclick={() => removeImage(index)}
8284
>
8385
8486
</button>
@@ -87,14 +89,15 @@
8789
</div>
8890
{/if}
8991

90-
<div class="flex items-center justify-between">
91-
<label class="cursor-pointer rounded-lg bg-gray-100 px-4 py-2 hover:bg-gray-200">
92-
<input type="file" accept="image/*" class="hidden" on:change={handleImageUpload} />
92+
<div class="flex items-center justify-between gap-2">
93+
<label class="w-full cursor-pointer text-center rounded-full bg-gray-100 px-4 py-3 hover:bg-gray-200">
94+
<input type="file" accept="image/*" class="hidden" onchange={handleImageUpload} />
9395
Add Photo
9496
</label>
9597

9698
<Button
9799
variant="secondary"
100+
size="sm"
98101
callback={handleSubmit}
99102
isLoading={isSubmitting}
100103
disabled={!text.trim() && images.length === 0}

0 commit comments

Comments
 (0)