From 1761534087ae8d4a8b0275a54d87ec04bf097f05 Mon Sep 17 00:00:00 2001 From: DarkPhoenix2704 Date: Tue, 20 Feb 2024 07:16:13 +0000 Subject: [PATCH] fix(nc-gui): Highlight today only in associated month --- packages/nc-gui/components/nc/DateWeekSelector.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui/components/nc/DateWeekSelector.vue b/packages/nc-gui/components/nc/DateWeekSelector.vue index 798ec2d9d3..12188cac56 100644 --- a/packages/nc-gui/components/nc/DateWeekSelector.vue +++ b/packages/nc-gui/components/nc/DateWeekSelector.vue @@ -164,7 +164,7 @@ const paginate = (action: 'next' | 'prev') => { 'text-gray-400': !isDateInCurrentMonth(date), 'nc-selected-week-start': isSameDate(date, dayjs(selectedWeek?.start)), 'nc-selected-week-end': isSameDate(date, dayjs(selectedWeek?.end)), - 'rounded-md bg-brand-50 text-brand-500': dayjs(date).isSame(dayjs(), 'date'), + 'rounded-md bg-brand-50 text-brand-500': isSameDate(date, dayjs()) && isDateInCurrentMonth(date), }" class="h-9 w-9 px-1 py-2 relative font-medium flex items-center cursor-pointer justify-center" @click="handleSelectDate(date)"