Browse Source

fix(nc-gui): long text expand in shared view

pull/6387/head
reenphygeorge 1 year ago
parent
commit
32b4488361
  1. 4
      packages/nc-gui/components/cell/TextArea.vue
  2. 2
      packages/nc-gui/components/smartsheet/Cell.vue

4
packages/nc-gui/components/cell/TextArea.vue

@ -10,6 +10,7 @@ import {
iconMap,
inject,
useVModel,
ReadonlyInj
} from '#imports'
const props = defineProps<{
@ -47,6 +48,8 @@ const inputRef = ref<HTMLTextAreaElement | null>(null)
const active = inject(ActiveCellInj, ref(false))
const readOnly = inject(ReadonlyInj)
watch(isVisible, () => {
if (isVisible.value) {
setTimeout(() => {
@ -138,6 +141,7 @@ onClickOutside(inputWrapperRef, (e) => {
:auto-size="{ minRows: 20, maxRows: 20 }"
@keydown.stop
@keydown.escape="isVisible = false"
:disabled="readOnly"
/>
</div>
</template>

2
packages/nc-gui/components/smartsheet/Cell.vue

@ -249,7 +249,7 @@ onUnmounted(() => {
<LazyCellJson v-else-if="isJSON(column)" v-model="vModel" />
<LazyCellText v-else v-model="vModel" />
<div
v-if="(isLocked || (isPublic && readOnly && !isForm) || isSystemColumn(column)) && !isAttachment(column)"
v-if="(isLocked || (isPublic && readOnly && !isForm) || isSystemColumn(column)) && !isAttachment(column) && !isTextArea(column)"
class="nc-locked-overlay"
/>
</template>

Loading…
Cancel
Save