Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix(nc-gui): add close icon expanded ai prompt cell

Ramesh Mane72cd3394313c
diff --git a/packages/nc-gui/components/cell/TextArea.vue b/packages/nc-gui/components/cell/TextArea.vue
index 678322e165..73b344c7d2 100644
--- a/packages/nc-gui/components/cell/TextArea.vue
+++ b/packages/nc-gui/components/cell/TextArea.vue
@@ -774,7 +774,7 @@ useResizeObserver(inputWrapperRef, () => {
</template>
</div>
<div class="flex-1"></div>
- <div v-if="!readOnly" class="flex items-center gap-1 mr-3">
+ <div v-if="!readOnly" class="flex items-center gap-1">
<NcTooltip :disabled="isFieldAiIntegrationAvailable" class="flex">
<template #title>
{{
@@ -803,6 +803,12 @@ useResizeObserver(inputWrapperRef, () => {
</NcTooltip>
</div>
</template>
+ <template v-if="props.isAi">
+ <div v-if="isEditColumn" class="flex-1"></div>
+ <NcButton class="mr-3" type="text" size="small" @click="isVisible = false">
+ <GeneralIcon icon="close" />
+ </NcButton>
+ </template>
</div>
<div v-if="props.isAi && props.aiMeta?.isStale && !readOnly" ref="aiWarningRef" class="border-b-1 border-gray-100">
<div class="flex items-center p-4 bg-nc-bg-purple-light gap-4">