From ad8b8781208e79164c0c3b2530be57cd571b8ef4 Mon Sep 17 00:00:00 2001 From: Chris <1633711653@qq.com> Date: Sun, 27 Nov 2022 01:20:30 +0800 Subject: [PATCH] fix(publishWidget): add max height (#136) --- components/publish/PublishWidget.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/components/publish/PublishWidget.vue b/components/publish/PublishWidget.vue index 16fe65ad..5d140f7a 100644 --- a/components/publish/PublishWidget.vue +++ b/components/publish/PublishWidget.vue @@ -16,9 +16,10 @@ const { expanded?: boolean }>() -let isExpanded = $ref(_expanded) let isSending = $ref(false) let { draft } = $(useDraft(draftKey, inReplyToId)) +const isExistDraft = $computed(() => !!draft.params.status && draft.params.status !== '

') +let isExpanded = $ref(isExistDraft || _expanded) const { editor } = useTiptap({ content: computed({ @@ -180,7 +181,7 @@ onUnmounted(() => {
{{ characterLimit - editor?.storage.characterCount.characters() }} @@ -254,7 +255,7 @@ onUnmounted(() => {