From 1d877e97f047697ed3a93428767d0cf830031b90 Mon Sep 17 00:00:00 2001 From: Johann150 Date: Sun, 13 Nov 2022 11:58:11 +0100 Subject: [PATCH] client: fix maxlength for profile description Changelog: Fixed --- packages/client/src/components/form/input.vue | 2 ++ packages/client/src/components/form/textarea.vue | 2 ++ packages/client/src/pages/settings/profile.vue | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/client/src/components/form/input.vue b/packages/client/src/components/form/input.vue index eed5323fa..d5c8c91c4 100644 --- a/packages/client/src/components/form/input.vue +++ b/packages/client/src/components/form/input.vue @@ -17,6 +17,7 @@ :spellcheck="spellcheck" :step="step" :list="id" + :maxlength="max" @focus="focused = true" @blur="focused = false" @keydown="onKeydown($event)" @@ -58,6 +59,7 @@ const props = defineProps<{ manualSave?: boolean; small?: boolean; large?: boolean; + max?: number; }>(); const emit = defineEmits<{ diff --git a/packages/client/src/components/form/textarea.vue b/packages/client/src/components/form/textarea.vue index 24fe867e3..b41ddf9e0 100644 --- a/packages/client/src/components/form/textarea.vue +++ b/packages/client/src/components/form/textarea.vue @@ -14,6 +14,7 @@ :pattern="pattern" :autocomplete="autocomplete ? 'on' : 'off'" :spellcheck="spellcheck" + :maxlength="max" @focus="focused = true" @blur="focused = false" @keydown="onKeydown($event)" @@ -54,6 +55,7 @@ const props = withDefaults(defineProps<{ pre?: boolean; debounce?: boolean; manualSave?: boolean; + max?: number; }>(), { pattern: undefined, placeholder: '', diff --git a/packages/client/src/pages/settings/profile.vue b/packages/client/src/pages/settings/profile.vue index 909f7e446..b15e67d5c 100644 --- a/packages/client/src/pages/settings/profile.vue +++ b/packages/client/src/pages/settings/profile.vue @@ -12,7 +12,7 @@ - +