Browse Source

fix(nc-gui): Highlight today only in associated month

pull/7611/head
DarkPhoenix2704 9 months ago
parent
commit
1761534087
  1. 2
      packages/nc-gui/components/nc/DateWeekSelector.vue

2
packages/nc-gui/components/nc/DateWeekSelector.vue

@ -164,7 +164,7 @@ const paginate = (action: 'next' | 'prev') => {
'text-gray-400': !isDateInCurrentMonth(date), 'text-gray-400': !isDateInCurrentMonth(date),
'nc-selected-week-start': isSameDate(date, dayjs(selectedWeek?.start)), 'nc-selected-week-start': isSameDate(date, dayjs(selectedWeek?.start)),
'nc-selected-week-end': isSameDate(date, dayjs(selectedWeek?.end)), '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" class="h-9 w-9 px-1 py-2 relative font-medium flex items-center cursor-pointer justify-center"
@click="handleSelectDate(date)" @click="handleSelectDate(date)"

Loading…
Cancel
Save