Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
4 changes: 2 additions & 2 deletions platforms/blabsy/.env.development
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Dev URL
NEXT_PUBLIC_URL=http://localhost
NEXT_PUBLIC_BASE_URL=http://192.168.0.226:4444
NEXT_PUBLIC_URL=https://blabsy.w3ds-prototype.merul.org
NEXT_PUBLIC_BASE_URL=https://blabsy.w3ds-prototype.merul.org

# Emulator
NEXT_PUBLIC_USE_EMULATOR=false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,14 @@
<button
type="button"
class="rounded-full p-2 hover:bg-gray-100"
on:click={closeCreatePostModal}
onclick={closeCreatePostModal}
>
</button>
</div>

<div class="mb-4">
<!-- svelte-ignore element_invalid_self_closing_tag -->
<textarea
bind:value={text}
placeholder="What's on your mind?"
Expand All @@ -70,6 +71,7 @@
<div class="mb-4 grid grid-cols-2 gap-4">
{#each images as image, index}
<div class="relative">
<!-- svelte-ignore a11y_img_redundant_alt -->
<img
src={image}
alt="Post image"
Expand All @@ -78,7 +80,7 @@
<button
type="button"
class="absolute top-2 right-2 rounded-full bg-black/50 p-1 text-white hover:bg-black/70"
on:click={() => removeImage(index)}
onclick={() => removeImage(index)}
>
</button>
Expand All @@ -87,14 +89,15 @@
</div>
{/if}

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

<Button
variant="secondary"
size="sm"
callback={handleSubmit}
isLoading={isSubmitting}
disabled={!text.trim() && images.length === 0}
Expand Down
Loading