Browse Source

fix(nc-gui): field overflow

pull/7673/head
DarkPhoenix2704 10 months ago
parent
commit
0e9e526d84
  1. 4
      packages/nc-gui/components/smartsheet/calendar/VRecordCard.vue
  2. 1
      packages/nc-gui/composables/useViewColumns.ts

4
packages/nc-gui/components/smartsheet/calendar/VRecordCard.vue

@ -1,7 +1,6 @@
<script lang="ts" setup>
interface Props {
record: Record<string, string>
color?: string
resize?: boolean
selected?: boolean
@ -71,10 +70,11 @@ const emit = defineEmits(['resize-start'])
<div v-if="position === 'bottomRounded' || position === 'none'" class="ml-3">....</div>
<span
class="mt-1.5 pl-4 pr-1 text-sm h-[100%] text-gray-800 leading-7 space-x-2 break-all whitespace-normal truncate w-full overflow-y-hidden absolute"
class="mt-1.5 pl-4 pr-1 text-sm h-[80%] text-gray-800 leading-7 space-x-2 break-all whitespace-normal truncate w-full overflow-y-hidden absolute"
>
<slot />
</span>
<div v-if="position === 'topRounded' || position === 'none'" class="h-full pb-7 flex items-end ml-3">....</div>
</div>
<div

1
packages/nc-gui/composables/useViewColumns.ts

@ -160,7 +160,6 @@ const [useProvideViewColumns, useViewColumns] = useInjectionState(
}
const saveOrUpdate = async (field: any, index: number, disableDataReload: boolean = false) => {
console.log('saveOrUpdate', field, index, disableDataReload)
if (isLocalMode.value && fields.value) {
fields.value[index] = field
meta.value!.columns = meta.value!.columns?.map((column: ColumnType) => {

Loading…
Cancel
Save