client: fix maxlength for profile description

Changelog: Fixed
This commit is contained in:
Johann150 2022-11-13 11:58:11 +01:00
parent 0571a0843c
commit 1d877e97f0
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1
3 changed files with 5 additions and 1 deletions

View file

@ -17,6 +17,7 @@
:spellcheck="spellcheck" :spellcheck="spellcheck"
:step="step" :step="step"
:list="id" :list="id"
:maxlength="max"
@focus="focused = true" @focus="focused = true"
@blur="focused = false" @blur="focused = false"
@keydown="onKeydown($event)" @keydown="onKeydown($event)"
@ -58,6 +59,7 @@ const props = defineProps<{
manualSave?: boolean; manualSave?: boolean;
small?: boolean; small?: boolean;
large?: boolean; large?: boolean;
max?: number;
}>(); }>();
const emit = defineEmits<{ const emit = defineEmits<{

View file

@ -14,6 +14,7 @@
:pattern="pattern" :pattern="pattern"
:autocomplete="autocomplete ? 'on' : 'off'" :autocomplete="autocomplete ? 'on' : 'off'"
:spellcheck="spellcheck" :spellcheck="spellcheck"
:maxlength="max"
@focus="focused = true" @focus="focused = true"
@blur="focused = false" @blur="focused = false"
@keydown="onKeydown($event)" @keydown="onKeydown($event)"
@ -54,6 +55,7 @@ const props = withDefaults(defineProps<{
pre?: boolean; pre?: boolean;
debounce?: boolean; debounce?: boolean;
manualSave?: boolean; manualSave?: boolean;
max?: number;
}>(), { }>(), {
pattern: undefined, pattern: undefined,
placeholder: '', placeholder: '',

View file

@ -12,7 +12,7 @@
<template #label>{{ i18n.ts._profile.name }}</template> <template #label>{{ i18n.ts._profile.name }}</template>
</FormInput> </FormInput>
<FormTextarea v-model="profile.description" :max="500" tall manual-save class="_formBlock"> <FormTextarea v-model="profile.description" :max="2048" tall manual-save class="_formBlock">
<template #label>{{ i18n.ts._profile.description }}</template> <template #label>{{ i18n.ts._profile.description }}</template>
<template #caption>{{ i18n.ts._profile.youCanIncludeHashtags }}</template> <template #caption>{{ i18n.ts._profile.youCanIncludeHashtags }}</template>
</FormTextarea> </FormTextarea>