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" :open="isOpen"
:disabled="readOnly" :disabled="readOnly"
:show-arrow="!readOnly && (active || vModel === null)" :show-arrow="!readOnly && (active || vModel === null)"
:class="{ '!ml-[-12px]': readOnly }"
dropdown-class-name="nc-dropdown-single-select-cell" dropdown-class-name="nc-dropdown-single-select-cell"
@select="isOpen = false" @select="isOpen = false"
@keydown="handleKeys" @keydown="handleKeys"

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

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

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

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

Loading…
Cancel
Save