Browse Source

fix(nc-gui): more on cell styles

pull/3563/head
Wing-Kam Wong 2 years ago
parent
commit
4946f89355
  1. 1
      packages/nc-gui/components/cell/SingleSelect.vue
  2. 3
      packages/nc-gui/components/smartsheet/Kanban.vue
  3. 2
      packages/nc-gui/components/virtual-cell/Lookup.vue

1
packages/nc-gui/components/cell/SingleSelect.vue

@ -75,7 +75,6 @@ watch(isOpen, (n, _o) => {
:open="isOpen"
:disabled="readOnly"
:show-arrow="!readOnly && (active || vModel === null)"
:class="{ '!ml-[-12px]': readOnly }"
dropdown-class-name="nc-dropdown-single-select-cell"
@select="isOpen = false"
@keydown="handleKeys"

3
packages/nc-gui/components/smartsheet/Kanban.vue

@ -1,6 +1,6 @@
<script lang="ts" setup>
import Draggable from 'vuedraggable'
import { isVirtualCol } from 'nocodb-sdk'
import { UITypes, isVirtualCol } from 'nocodb-sdk'
import {
ActiveViewInj,
FieldsInj,
@ -381,6 +381,7 @@ watch(
<div
v-if="!isRowEmpty(record, col)"
class="flex flex-row w-full items-center justify-start pl-[6px]"
:class="{ '!ml-[-12px]': col.uidt === UITypes.SingleSelect }"
>
<LazySmartsheetVirtualCell
v-if="isVirtualCol(col)"

2
packages/nc-gui/components/virtual-cell/Lookup.vue

@ -49,7 +49,7 @@ const lookupColumnMetaProps = useColumn(lookupColumn)
</script>
<template>
<div class="h-full flex gap-1">
<div class="h-full flex gap-1 overflow-x-auto p-1">
<template v-if="lookupColumn">
<!-- Render virtual cell -->
<div v-if="isVirtualCol(lookupColumn)">

Loading…
Cancel
Save