(), {
resize: true,
selected: false,
hover: false,
- color: 'blue',
+ color: 'gray',
})
const emit = defineEmits(['resize-start'])
@@ -26,9 +26,10 @@ const emit = defineEmits(['resize-start'])
'bg-yellow-50': color === 'yellow',
'bg-pink-50': color === 'pink',
'bg-purple-50': color === 'purple',
+ 'bg-white border-gray-200': color === 'gray',
'shadow-md': hover,
}"
- class="relative flex gap-2 relative rounded-md h-full"
+ class="relative flex gap-2 border-1 relative rounded-md h-full"
>
@@ -71,4 +73,10 @@ const emit = defineEmits(['resize-start'])
.cursor-row-resize {
cursor: ns-resize;
}
+
+.plain-cell {
+ .bold {
+ @apply !text-gray-800 font-semibold;
+ }
+}
diff --git a/packages/nc-gui/components/smartsheet/calendar/WeekView/DateField.vue b/packages/nc-gui/components/smartsheet/calendar/WeekView/DateField.vue
index b86f47239d..b60824d138 100644
--- a/packages/nc-gui/components/smartsheet/calendar/WeekView/DateField.vue
+++ b/packages/nc-gui/components/smartsheet/calendar/WeekView/DateField.vue
@@ -157,7 +157,7 @@ const calendarData = computed(() => {
style: {
width: `calc(max(${spanDays} * ${perDayWidth}px, ${perDayWidth}px))`,
left: `${startDaysDiff * perDayWidth}px`,
- top: `${suitableRow * 28}px`,
+ top: `${suitableRow * 28 + suitableRow * 8}px`,
},
},
})
@@ -560,7 +560,6 @@ const addRecord = (date: dayjs.Dayjs) => {
:position="record.rowMeta.position"
:record="record"
:resize="!!record.rowMeta.range?.fk_to_col && isUIAllowed('dataEdit')"
- color="blue"
@dblclick.stop="emits('expandRecord', record)"
@resize-start="onResizeStart"
>
diff --git a/packages/nc-gui/components/smartsheet/calendar/WeekView/DateTimeField.vue b/packages/nc-gui/components/smartsheet/calendar/WeekView/DateTimeField.vue
index 5e76b74975..e637936515 100644
--- a/packages/nc-gui/components/smartsheet/calendar/WeekView/DateTimeField.vue
+++ b/packages/nc-gui/components/smartsheet/calendar/WeekView/DateTimeField.vue
@@ -268,11 +268,13 @@ const recordsAcrossAllRange = computed<{
}
>
>
+ spanningRecords: Row[]
}>(() => {
if (!formattedData.value || !calendarRange.value || !container.value || !scrollContainer.value)
return {
records: [],
gridTimeMap: new Map(),
+ spanningRecords: [],
}
const perWidth = containerWidth.value / maxVisibleDays.value
const perHeight = 52
@@ -529,8 +531,8 @@ const recordsAcrossAllRange = computed<{
}
record.rowMeta.style = {
...record.rowMeta.style,
- left: `calc(${majorLeft}px + ${left}%)`,
- width: `calc(${width}%)`,
+ left: `calc(${majorLeft}px + ${left}% + 4px)`,
+ width: `calc(${width}% - 8px)`,
display,
}
}
@@ -539,6 +541,7 @@ const recordsAcrossAllRange = computed<{
return {
records: recordsToDisplay,
gridTimeMap,
+ spanningRecords: recordSpanningDays,
}
})
@@ -895,18 +898,24 @@ watch(
},
{ immediate: true },
)
+
+const expandRecord = (record: Row) => {
+ emits('expandRecord', record)
+}