Browse Source

fix: Fixed add new record button hiding when scrolling to right

pull/6729/head
Muhammed Mustafa 1 year ago
parent
commit
613f4d2b8e
  1. 15
      packages/nc-gui/components/smartsheet/grid/Table.vue

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

@ -1211,7 +1211,7 @@ const loaderText = computed(() => {
<div class="table-overlay" :class="{ 'nc-grid-skelton-loader': showSkeleton }">
<table
ref="smartTable"
class="xc-row-table nc-grid backgroundColorDefault !h-auto bg-white"
class="xc-row-table nc-grid backgroundColorDefault !h-auto bg-white relative"
:class="{
mobile: isMobileMode,
desktop: !isMobileMode,
@ -1554,14 +1554,17 @@ const loaderText = computed(() => {
@mouseup.stop
@click="addEmptyRow()"
>
<td class="text-left pointer sticky left-0 !border-r-0">
<div class="px-2 w-full flex items-center text-gray-500">
<component :is="iconMap.plus" class="text-pint-500 text-base ml-2 text-gray-600 group-hover:text-black" />
</div>
</td>
<td class="text-left pointer sticky left-0 !border-r-0"></td>
<td class="!border-gray-100" :colspan="visibleColLength"></td>
</tr>
</tbody>
<div class="max-h-0 absolute left-0 bottom-0 px-2 sticky z-40 w-full flex items-center text-gray-500">
<component
:is="iconMap.plus"
v-if="!isViewColumnsLoading"
class="text-pint-500 text-base ml-2 -mt-10 text-gray-600 group-hover:text-black"
/>
</div>
</table>
<!-- Fill Handle -->

Loading…
Cancel
Save