From becb3806fe14dec760190d3f007ca15987f5312a Mon Sep 17 00:00:00 2001 From: DarkPhoenix2704 Date: Tue, 20 Feb 2024 07:16:12 +0000 Subject: [PATCH] fix(nc-gui): review changes --- packages/nc-gui/components/nc/DateWeekSelector.vue | 9 ++++++++- .../components/smartsheet/calendar/MonthView.vue | 14 ++++++++------ .../components/smartsheet/calendar/SideMenu.vue | 4 ++-- .../smartsheet/calendar/SideRecordCard.vue | 2 +- 4 files changed, 19 insertions(+), 10 deletions(-) diff --git a/packages/nc-gui/components/nc/DateWeekSelector.vue b/packages/nc-gui/components/nc/DateWeekSelector.vue index d468bf4e12..798ec2d9d3 100644 --- a/packages/nc-gui/components/nc/DateWeekSelector.vue +++ b/packages/nc-gui/components/nc/DateWeekSelector.vue @@ -164,11 +164,18 @@ 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'), }" class="h-9 w-9 px-1 py-2 relative font-medium flex items-center cursor-pointer justify-center" @click="handleSelectDate(date)" > - + {{ date.get('date') }} diff --git a/packages/nc-gui/components/smartsheet/calendar/MonthView.vue b/packages/nc-gui/components/smartsheet/calendar/MonthView.vue index 4e03e0ec6e..f4c976b896 100644 --- a/packages/nc-gui/components/smartsheet/calendar/MonthView.vue +++ b/packages/nc-gui/components/smartsheet/calendar/MonthView.vue @@ -784,7 +784,14 @@ onBeforeUnmount(() => { > - {{ dayjs(day).format('DD') }} + + {{ dayjs(day).format('DD') }} +
{{ dayjs(day).format('DD') }}
@@ -819,11 +826,6 @@ onBeforeUnmount(() => { > { record.rowMeta.range?.fk_from_col ? calDataType === UITypes.Date ? dayjs(record.row[record.rowMeta.range.fk_from_col.title!]).format('DD MMM') - : dayjs(record.row[record.rowMeta.range.fk_from_col.title!]).format('DD MMM•HH:MM A') + : dayjs(record.row[record.rowMeta.range.fk_from_col.title!]).format('DD MMM•HH:mm A') : null " :invalid=" @@ -324,7 +324,7 @@ const sideBarListScrollHandle = useDebounceFn(async (e: Event) => { record.rowMeta.range!.fk_to_col ? calDataType === UITypes.Date ? dayjs(record.row[record.rowMeta.range!.fk_to_col.title!]).format('DD MMM') - : dayjs(record.row[record.rowMeta.range!.fk_to_col.title!]).format('DD MMM•HH:MM A') + : dayjs(record.row[record.rowMeta.range!.fk_to_col.title!]).format('DD MMM•HH:mm A') : null " color="blue" diff --git a/packages/nc-gui/components/smartsheet/calendar/SideRecordCard.vue b/packages/nc-gui/components/smartsheet/calendar/SideRecordCard.vue index bab5fc57d1..d06007fe00 100644 --- a/packages/nc-gui/components/smartsheet/calendar/SideRecordCard.vue +++ b/packages/nc-gui/components/smartsheet/calendar/SideRecordCard.vue @@ -32,7 +32,7 @@ const props = withDefaults(defineProps(), { class="block h-10 w-1 rounded" >
- {{ name }} + {{ name }} {{ fromDate }} {{ toDate ? ` - ${toDate}` : '' }}