|
|
@ -280,6 +280,7 @@ watch(inputWrapperRef, () => { |
|
|
|
</NcTooltip> |
|
|
|
</NcTooltip> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<a-modal |
|
|
|
<a-modal |
|
|
|
|
|
|
|
v-if="isVisible" |
|
|
|
v-model:visible="isVisible" |
|
|
|
v-model:visible="isVisible" |
|
|
|
:closable="false" |
|
|
|
:closable="false" |
|
|
|
:footer="null" |
|
|
|
:footer="null" |
|
|
@ -288,10 +289,8 @@ watch(inputWrapperRef, () => { |
|
|
|
:mask-closable="false" |
|
|
|
:mask-closable="false" |
|
|
|
:mask-style="{ zIndex: 1051 }" |
|
|
|
:mask-style="{ zIndex: 1051 }" |
|
|
|
:z-index="1052" |
|
|
|
:z-index="1052" |
|
|
|
:destroy-on-close="true" |
|
|
|
|
|
|
|
> |
|
|
|
> |
|
|
|
<div |
|
|
|
<div |
|
|
|
v-if="isVisible" |
|
|
|
|
|
|
|
ref="inputWrapperRef" |
|
|
|
ref="inputWrapperRef" |
|
|
|
class="flex flex-col py-3 w-full expanded-cell-input relative" |
|
|
|
class="flex flex-col py-3 w-full expanded-cell-input relative" |
|
|
|
:class="{ |
|
|
|
:class="{ |
|
|
@ -320,13 +319,13 @@ watch(inputWrapperRef, () => { |
|
|
|
v-model:value="vModel" |
|
|
|
v-model:value="vModel" |
|
|
|
class="nc-text-area-expanded !py-1 !px-3 !text-black !cursor-text !min-h-[210px] !rounded-lg focus:border-brand-500 disabled:!bg-gray-50" |
|
|
|
class="nc-text-area-expanded !py-1 !px-3 !text-black !cursor-text !min-h-[210px] !rounded-lg focus:border-brand-500 disabled:!bg-gray-50" |
|
|
|
:placeholder="$t('activity.enterText')" |
|
|
|
:placeholder="$t('activity.enterText')" |
|
|
|
:style="{ resize: 'vertical' }" |
|
|
|
:style="{ resize: 'both' }" |
|
|
|
:disabled="readOnly" |
|
|
|
:disabled="readOnly" |
|
|
|
@keydown.escape="isVisible = false" |
|
|
|
@keydown.escape="isVisible = false" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<LazyCellRichText v-else-if="isVisible" v-model:value="vModel" show-menu full-mode :readonly="readOnly" /> |
|
|
|
<LazyCellRichText v-else v-model:value="vModel" show-menu full-mode :readonly="readOnly" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</a-modal> |
|
|
|
</a-modal> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -337,9 +336,11 @@ textarea:focus { |
|
|
|
box-shadow: none; |
|
|
|
box-shadow: none; |
|
|
|
} |
|
|
|
} |
|
|
|
.nc-text-area-expanded { |
|
|
|
.nc-text-area-expanded { |
|
|
|
@apply h-[min(795px,100vh_-_170px)]; |
|
|
|
@apply h-[min(795px,100vh_-_170px)] w-[min(1256px,100vw_-_124px)]; |
|
|
|
|
|
|
|
|
|
|
|
max-height: min(795px, 100vh - 170px); |
|
|
|
max-height: min(795px, 100vh - 170px); |
|
|
|
|
|
|
|
min-width: 256px; |
|
|
|
|
|
|
|
max-width: min(1256px, 100vw - 124px); |
|
|
|
scrollbar-width: thin !important; |
|
|
|
scrollbar-width: thin !important; |
|
|
|
&::-webkit-scrollbar-thumb { |
|
|
|
&::-webkit-scrollbar-thumb { |
|
|
|
@apply rounded-lg; |
|
|
|
@apply rounded-lg; |
|
|
@ -358,14 +359,13 @@ textarea:focus { |
|
|
|
@apply !w-full h-full !top-0 !mx-auto !my-0; |
|
|
|
@apply !w-full h-full !top-0 !mx-auto !my-0; |
|
|
|
|
|
|
|
|
|
|
|
.ant-modal-content { |
|
|
|
.ant-modal-content { |
|
|
|
@apply absolute w-full min-h-70 !p-0 left-[50%] top-[50%]; |
|
|
|
@apply absolute w-[fit-content] min-h-70 min-w-70 !p-0 left-[50%] top-[50%]; |
|
|
|
|
|
|
|
|
|
|
|
/* Use 'transform' to center the div correctly */ |
|
|
|
/* Use 'transform' to center the div correctly */ |
|
|
|
transform: translate(-50%, -50%); |
|
|
|
transform: translate(-50%, -50%); |
|
|
|
|
|
|
|
|
|
|
|
min-width: min(800px, calc(100vw - 100px)); |
|
|
|
max-width: min(1280px, 100vw - 100px); |
|
|
|
max-width: min(1280px, calc(100vw - 100px)); |
|
|
|
max-height: min(864px, 100vh - 100px); |
|
|
|
max-height: min(864px, calc(100vh - 100px)); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|