Skip to content

Commit 4872ae2

Browse files
committed
account page frontend looks ok
1 parent f96c16e commit 4872ae2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

frontend/src/components/app/settings/AccountInput.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<!-- eslint-disable max-len -->
3-
<div class="w-full my-4">
3+
<div class="w-full my-4 md:max-w-sm">
44
<ValidationObserver v-slot="{ handleSubmit, invalid }" class="w-full">
55
<form @submit.prevent="handleSubmit(onSubmit)" class="w-full">
66
<div class="flex justify-between items-center w-full">
@@ -9,30 +9,30 @@
99
v-bind:class="{'text-sm': true,'text-purple-matcha': true, 'bg-transparent': true, 'focus:outline-none': true, 'active:outline-none': true, 'opacity-50': invalid, 'cursor-pointer': !invalid}">
1010
<h1 v-if="!edit" v-on:click="startEditing()" class="cursor-pointer text-sm text-purple-matcha">{{ buttonText }}</h1>
1111
</div>
12-
<div class="break-words" v-if="!edit && type !== 'password'"><h1 class="text-md opacity-50 max-w-xs">{{ currentValue }}</h1></div>
12+
<div class="break-words" v-if="!edit && type !== 'password'"><h1 class="text-md opacity-50 md:max-w-sm">{{ currentValue }}</h1></div>
1313
<div v-if="edit">
1414
<ValidationProvider v-if="type === 'firstName'" name="First Name" rules="required|alpha|max:20" v-slot="{errors}">
15-
<input type="text" placeholder="First Name" v-model="currentValue" class="matcha-input max-w-xs">
15+
<input type="text" placeholder="First Name" v-model="currentValue" class="matcha-input md:max-w-sm">
1616
<span class="matcha-input-error">{{ errors[0] }}</span>
1717
</ValidationProvider>
1818
<ValidationProvider v-if="type === 'lastName'" name="Last Name" rules="required|alpha|max:20" v-slot="{errors}">
19-
<input type="text" placeholder="Last Name" v-model="currentValue" class="matcha-input max-w-xs">
19+
<input type="text" placeholder="Last Name" v-model="currentValue" class="matcha-input md:max-w-sm">
2020
<span class="matcha-input-error">{{ errors[0] }}</span>
2121
</ValidationProvider>
2222
<ValidationProvider v-if="type === 'email'" name="Email" rules="required|email|max:50" v-slot="{errors}">
23-
<input type="email" placeholder="Email" v-model="currentValue" class="matcha-input max-w-xs">
23+
<input type="email" placeholder="Email" v-model="currentValue" class="matcha-input md:max-w-sm">
2424
<span class="matcha-input-error">{{ errors[0] }}</span>
2525
</ValidationProvider>
2626
<ValidationProvider v-if="type === 'username'" name="Username" rules="required|alpha_dash|max:20" v-slot="{errors}">
27-
<input type="text" placeholder="Username" v-model="currentValue" class="matcha-input max-w-xs">
27+
<input type="text" placeholder="Username" v-model="currentValue" class="matcha-input md:max-w-sm">
2828
<span class="matcha-input-error">{{ errors[0] }}</span>
2929
</ValidationProvider>
3030
<ValidationProvider v-if="type === 'bio'" name="Biography" rules="required|min:50|max:200" v-slot="{errors}">
31-
<textarea style="resize: none;" rows="4" type="text" placeholder="Biography" v-model="currentValue" class="matcha-input max-w-xs block"></textarea>
31+
<textarea style="resize: none;" rows="4" type="text" placeholder="Biography" v-model="currentValue" class="matcha-input md:max-w-sm block"></textarea>
3232
<span class="matcha-input-error">{{ errors[0] }}</span>
3333
</ValidationProvider>
3434
<ValidationProvider v-if="type === 'password'" name="Password" rules="required|min:6|validPassword" v-slot="{errors}">
35-
<input type="password" placeholder="New Password" v-model="currentValue" class="matcha-input max-w-xs">
35+
<input type="password" placeholder="New Password" v-model="currentValue" class="matcha-input md:max-w-sm">
3636
<span class="matcha-input-error">{{ passwordErrorHandler(errors[0]) }}</span>
3737
</ValidationProvider>
3838
<ValidationProvider v-if="type === 'password'" name="Repeat Password" rules="required|confirmed:Password" v-slot="{errors}">

0 commit comments

Comments
 (0)