Skip to content

Commit 22918da

Browse files
committed
feat: set limits in the edit ui.
1 parent 9af896e commit 22918da

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

PinkSea.Frontend/src/views/UserEditView.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ onMounted(updateProfile);
140140
<div>{{ $t("profile_edit.nickname") }}</div>
141141
</td>
142142
<td>
143-
<input type="text" placeholder="" v-model="profile.nick" />
143+
<input type="text" placeholder="" v-model="profile.nick" maxlength="64" />
144144
<div class="settings-description">
145145
{{ $t("profile_edit.nickname_description") }}
146146
</div>
@@ -152,7 +152,7 @@ onMounted(updateProfile);
152152
</td>
153153
<td>
154154
<textarea placeholder="Your description (256 characters max)"
155-
v-model="profile.description"></textarea>
155+
v-model="profile.description" maxlength="256"></textarea>
156156
<div class="settings-description">
157157
{{ $t("profile_edit.your_bio_description") }}
158158
</div>
@@ -185,7 +185,7 @@ onMounted(updateProfile);
185185
<div>{{ $t("profile_edit.link_name") }}</div>
186186
</td>
187187
<td>
188-
<input type="text" placeholder="Example" v-model="linkName" />
188+
<input type="text" placeholder="Example" v-model="linkName" maxlength="50" />
189189
<div class="settings-description">
190190
{{ $t("profile_edit.link_name_description") }}
191191
</div>
@@ -205,7 +205,7 @@ onMounted(updateProfile);
205205
<tr>
206206
<td>
207207
<button v-on:click.prevent="addLink(linkName, linkUrl)">{{ $t("profile_edit.link_add")
208-
}}</button>
208+
}}</button>
209209
</td>
210210
</tr>
211211
</tbody>

0 commit comments

Comments
 (0)