Browse Source

fix(nc-gui): remove cell padding from text area cell

pull/10016/head
Ramesh Mane 2 days ago
parent
commit
f5ece079f7
  1. 4
      packages/nc-gui/components/cell/TextArea.vue
  2. 14
      packages/nc-gui/components/smartsheet/grid/InfiniteTable.vue
  3. 14
      packages/nc-gui/components/smartsheet/grid/Table.vue

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

@ -515,8 +515,8 @@ watch(textAreaRef, (el) => {
:class="{
'right-1': isForm,
'right-0': !isForm,
'top-0 ': isGrid && !isExpandedFormOpen && !isForm,
'!right-2 ': isGrid && !isExpandedFormOpen && !isForm && ((editEnabled && !isVisible) || isForm),
'top-0 right-1': isGrid && !isExpandedFormOpen && !isForm,
'!right-2 top-2': isGrid && !isExpandedFormOpen && !isForm && ((editEnabled && !isVisible) || isForm),
'top-1': !(isGrid && !isExpandedFormOpen && !isForm),
}"
>

14
packages/nc-gui/components/smartsheet/grid/InfiniteTable.vue

@ -2727,16 +2727,16 @@ watch(vSelectedAllRecords, (selectedAll) => {
&.align-top {
@apply py-2;
&:has(.nc-cell textarea) {
@apply pr-0;
&:has(.nc-cell.nc-cell-longtext textarea) {
@apply py-0 pr-0;
}
}
&.align-middle {
@apply py-0;
&:has(.nc-cell textarea) {
@apply py-2 pr-0;
&:has(.nc-cell.nc-cell-longtext textarea) {
@apply pr-0;
}
}
@ -2760,10 +2760,6 @@ watch(vSelectedAllRecords, (selectedAll) => {
:deep(.nc-virtual-cell) {
@apply !text-small;
textarea {
@apply !pr-8;
}
.nc-cell-field,
input,
textarea {
@ -2800,7 +2796,7 @@ watch(vSelectedAllRecords, (selectedAll) => {
@apply leading-[18px];
textarea {
@apply pr-2;
@apply pr-8 !py-2;
}
}

14
packages/nc-gui/components/smartsheet/grid/Table.vue

@ -2742,16 +2742,16 @@ onKeyStroke('ArrowDown', onDown)
&.align-top {
@apply py-2;
&:has(.nc-cell textarea) {
@apply pr-0;
&:has(.nc-cell.nc-cell-longtext textarea) {
@apply py-0 pr-0;
}
}
&.align-middle {
@apply py-0;
&:has(.nc-cell textarea) {
@apply py-2 pr-0;
&:has(.nc-cell.nc-cell-longtext textarea) {
@apply pr-0;
}
}
@ -2775,10 +2775,6 @@ onKeyStroke('ArrowDown', onDown)
:deep(.nc-virtual-cell) {
@apply !text-small;
textarea {
@apply !pr-8;
}
.nc-cell-field,
input,
textarea {
@ -2815,7 +2811,7 @@ onKeyStroke('ArrowDown', onDown)
@apply leading-[18px];
textarea {
@apply pr-2;
@apply pr-8 !py-2;
}
}

Loading…
Cancel
Save