|
6 | 6 | <div class="flex justify-between items-center w-full"> |
7 | 7 | <h1 class="text-md font-bold capitalize text-gray-matcha">{{ name }}</h1> |
8 | 8 | <input v-if="edit" type="submit" :disabled="invalid" value="Save" |
9 | | - v-bind:class="{'text-lg': true,'text-purple-matcha': true, 'bg-transparent': true, 'focus:outline-none': true, 'active:outline-none': true, 'opacity-50': invalid, 'cursor-pointer': !invalid}"> |
10 | | - <h1 v-if="!edit" v-on:click="startEditing()" class="cursor-pointer text-md text-purple-matcha">{{ buttonText }}</h1> |
| 9 | + v-bind:class="{'text-base': true,'text-purple-matcha': true, 'bg-transparent': true, 'focus:outline-none': true, 'active:outline-none': true, 'opacity-50': invalid, 'cursor-pointer': !invalid}"> |
| 10 | + <h1 v-if="!edit" v-on:click="startEditing()" class="cursor-pointer text-base text-purple-matcha">{{ buttonText }}</h1> |
11 | 11 | </div> |
12 | | - <div v-if="!edit && type !== 'password'"><h1 class="text-md opacity-50">{{ currentValue }}</h1></div> |
| 12 | + <div class="break-words" v-if="!edit && type !== 'password'"><h1 class="text-md opacity-50 max-w-xs">{{ currentValue }}</h1></div> |
13 | 13 | <div v-if="edit"> |
14 | 14 | <ValidationProvider v-if="type === 'firstName'" name="First Name" rules="required|alpha|max:20" v-slot="{errors}"> |
15 | 15 | <input type="text" placeholder="First Name" v-model="currentValue" class="matcha-input max-w-xs"> |
|
27 | 27 | <input type="text" placeholder="Username" v-model="currentValue" class="matcha-input max-w-xs"> |
28 | 28 | <span class="matcha-input-error">{{ errors[0] }}</span> |
29 | 29 | </ValidationProvider> |
| 30 | + <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> |
| 32 | + <span class="matcha-input-error">{{ errors[0] }}</span> |
| 33 | + </ValidationProvider> |
30 | 34 | <ValidationProvider v-if="type === 'password'" name="Password" rules="required|min:6|validPassword" v-slot="{errors}"> |
31 | 35 | <input type="password" placeholder="Password" v-model="currentValue" class="matcha-input max-w-xs"> |
32 | 36 | <span class="matcha-input-error">{{ passwordErrorHandler(errors[0]) }}</span> |
|
0 commit comments