Skip to content

Commit

Permalink
fix profile editor for mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
chakany committed Mar 23, 2024
1 parent 9118c8f commit 6134d99
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions src/routes/onboarding/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -186,17 +186,17 @@
Regarding your profile, we need your input to create it. Please provide the following details
for publication.
</p>
<div class="flex gap-10 mx-auto">
<div class="flex flex-col">
<label for="file-upload" class="cursor-pointer">
<img class="w-[200px] h-[200px] rounded-full bg-input" src={picture} alt="Profile" />
<input id="file-upload" bind:this={input} type="file" class="sr-only" />
<div class="flex gap-4 md:gap-10 mx-auto">
<div class="flex flex-col self-center">
<h2 class="text-white">Picture</h2>
<label for="file-upload" class="cursor-pointer self-center">
<img class="w-[100px] h-[100px] md:w-[200px] md:h-[200px] rounded-full bg-input self-center" src={picture} alt="Profile" />
<input id="file-upload" bind:this={input} type="file" class="sr-only self-center" />
</label>
Click ^ to upload profile image.
</div>
<div class="flex flex-col gap-2">
<div class="flex flex-col gap-2 self-center">
<h2>Display Name</h2>
<p class="break-words">This will be visible to others.</p>
<p class="break-words hidden md:visible">This will be visible to others.</p>
<input bind:value={name} class="input" type="text" placeholder="Zap Cooking Chef" />
</div>
</div>
Expand Down
16 changes: 8 additions & 8 deletions src/routes/user/[slug]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -184,17 +184,17 @@

<Modal cleanup={editModalCleanup} open={editModal}>
<h1 slot="title">Edit Profile</h1>
<div class="flex gap-10 mx-0.5">
<div class="">
<label for="file-upload" class="cursor-pointer">
<img class="w-[200px] h-[200px] rounded-full bg-input" src={url} alt="Profile" />
<input id="file-upload" bind:this={input} type="file" class="sr-only" />
<div class="flex gap-4 md:gap-10 mx-auto">
<div class="flex flex-col self-center">
<h2 class="text-white">Picture</h2>
<label for="file-upload" class="cursor-pointer self-center">
<img class="w-[100px] h-[100px] md:w-[200px] md:h-[200px] rounded-full bg-input self-center" src={url} alt="Profile" />
<input id="file-upload" bind:this={input} type="file" class="sr-only self-center" />
</label>
Click ^ to upload profile image.
</div>
<div class="flex flex-col gap-2">
<div class="flex flex-col gap-2 self-center">
<h2>Display Name</h2>
<p class="break-words">This will be visible to others.</p>
<p class="break-words hidden md:visible">This will be visible to others.</p>
<input bind:value={profileName} class="input" type="text" placeholder="Zap Cooking Chef" />
</div>
</div>
Expand Down

0 comments on commit 6134d99

Please sign in to comment.