diff --git a/packages/nc-gui/components/smartsheet/calendar/VRecordCard.vue b/packages/nc-gui/components/smartsheet/calendar/VRecordCard.vue
index e12595ea29..af1df3a51c 100644
--- a/packages/nc-gui/components/smartsheet/calendar/VRecordCard.vue
+++ b/packages/nc-gui/components/smartsheet/calendar/VRecordCard.vue
@@ -44,7 +44,7 @@ const emit = defineEmits(['resize-start'])
'bg-pink-500': color === 'pink',
'bg-purple-500': color === 'purple',
}"
- class="h-full min-h-9 w-1.25 -ml-0.25 rounded-l-md"
+ class="h-full min-h-3 w-1.25 -ml-0.25 rounded-l-md"
>
diff --git a/packages/nc-gui/components/smartsheet/calendar/WeekView/DateTimeField.vue b/packages/nc-gui/components/smartsheet/calendar/WeekView/DateTimeField.vue
index f6e4374e92..61d66663fb 100644
--- a/packages/nc-gui/components/smartsheet/calendar/WeekView/DateTimeField.vue
+++ b/packages/nc-gui/components/smartsheet/calendar/WeekView/DateTimeField.vue
@@ -596,14 +596,24 @@ const onResize = (event: MouseEvent) => {
let isValid = true
if (resizeDirection.value === 'right') {
+ const minEndDate = ogStartDate.add(1, 'hour')
newDate = baseDate.isBefore(ogStartDate)
? ogStartDate.add(Math.ceil(ogStartDate.diff(baseDate, 'minute') / 15) * 15, 'minute')
: baseDate
+
+ if (newDate.isBefore(minEndDate)) {
+ newDate = minEndDate
+ }
updateProperty = toCol.title
} else if (resizeDirection.value === 'left') {
+ const minStartDate = ogEndDate.subtract(1, 'hour')
newDate = baseDate.isAfter(ogEndDate)
? ogEndDate.subtract(Math.ceil(baseDate.diff(ogEndDate, 'minute') / 15) * 15, 'minute')
: baseDate
+
+ if (newDate.isAfter(minStartDate)) {
+ newDate = minStartDate
+ }
updateProperty = fromCol.title
} else {
isValid = false