From b320191fb8de658082187ab9badd4d9d14c5659c Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Wed, 17 Jan 2024 07:24:57 +0000 Subject: [PATCH] fix(nc-gui): rich text, long text expand btn issue --- packages/nc-gui/components/cell/TextArea.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/nc-gui/components/cell/TextArea.vue b/packages/nc-gui/components/cell/TextArea.vue index b37d5470e9..7414851a39 100644 --- a/packages/nc-gui/components/cell/TextArea.vue +++ b/packages/nc-gui/components/cell/TextArea.vue @@ -86,7 +86,7 @@ onClickOutside(inputWrapperRef, (e) => { }) const onTextClick = () => { - if (!props.virtual) return + if (!props.virtual || readOnly?.value) return isVisible.value = true editEnabled.value = true @@ -223,6 +223,7 @@ watch(editEnabled, () => { :style="{ 'word-break': 'break-word', 'white-space': 'pre-line', + 'max-height': `${25 * (rowHeight || 1)}px`, }" @click="onTextClick" />