Browse Source

feat: sticky add new row

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5805/head
Pranav C 2 years ago
parent
commit
b5813f06b5
  1. 18
      packages/nc-gui/components/smartsheet/Grid.vue

18
packages/nc-gui/components/smartsheet/Grid.vue

@ -1004,14 +1004,14 @@ const deleteSelectedRangeOfRows = () => {
</template> </template>
</LazySmartsheetRow> </LazySmartsheetRow>
<tr v-if="isAddingEmptyRowAllowed"> <tr
<td v-if="isAddingEmptyRowAllowed"
v-e="['c:row:add:grid-bottom']" v-e="['c:row:add:grid-bottom']"
:colspan="visibleColLength + 1" class="!sticky bottom-0 left-0 z-6 cursor-pointer"
class="text-left pointer nc-grid-add-new-cell cursor-pointer" @click="addEmptyRow()"
@click="addEmptyRow()" >
> <td :colspan="2" class="text-left pointer nc-grid-add-new-cell !sticky lef-0 !border-0">
<div class="px-2 w-full flex items-center text-gray-500"> <div class="px-2 w-full flex items-center text-gray-500 !z-5">
<component :is="iconMap.plus" class="text-pint-500 text-xs ml-2 text-primary" /> <component :is="iconMap.plus" class="text-pint-500 text-xs ml-2 text-primary" />
<span class="ml-1"> <span class="ml-1">
@ -1019,6 +1019,8 @@ const deleteSelectedRangeOfRows = () => {
</span> </span>
</div> </div>
</td> </td>
<td v-e="['c:row:add:grid-bottom']" class="nc-grid-add-new-cell z-0 !border-0" :colspan="visibleColLength - 1"></td>
</tr> </tr>
</tbody> </tbody>
</table> </table>

Loading…
Cancel
Save