From 2e1e610f0447c07eb60b7f3dcb62ddd46c97d80b Mon Sep 17 00:00:00 2001 From: DarkPhoenix2704 Date: Tue, 20 Feb 2024 07:16:12 +0000 Subject: [PATCH] fix(nc-gui): should have only one blue border --- .../nc-gui/components/smartsheet/calendar/MonthView.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/nc-gui/components/smartsheet/calendar/MonthView.vue b/packages/nc-gui/components/smartsheet/calendar/MonthView.vue index 6f50f6e97c..d3a3e5d17b 100644 --- a/packages/nc-gui/components/smartsheet/calendar/MonthView.vue +++ b/packages/nc-gui/components/smartsheet/calendar/MonthView.vue @@ -659,6 +659,12 @@ const dropEvent = (event: DragEvent) => { } const selectDate = (date: Date) => { + dragRecord.value = undefined + draggingId.value = null + resizeRecord.value = undefined + resizeInProgress.value = false + resizeDirection.value = undefined + focusedDate.value = null selectedDate.value = date } @@ -702,7 +708,8 @@ onBeforeUnmount(() => { v-for="(day, dateIndex) in week" :key="`${weekIndex}-${dateIndex}`" :class="{ - 'border-brand-500 border-2 border-r-2 border-b-2': isDateSelected(day) || dayjs(day).isSame(focusedDate, 'day'), + 'border-brand-500 border-2 border-r-2 border-b-2': + isDateSelected(day) || (focusedDate && dayjs(day).isSame(focusedDate, 'day')), '!text-gray-400': !isDayInPagedMonth(day), }" class="text-right relative group text-sm h-full border-r-1 border-b-1 border-gray-200 font-semibold hover:bg-gray-50 text-gray-800 bg-white"