From 423415d6b78a4fb49114db1b532c4a07098b21dc Mon Sep 17 00:00:00 2001 From: DarkPhoenix2704 Date: Wed, 28 Feb 2024 10:11:40 +0000 Subject: [PATCH] feat(nc-gui): border color & adjust height --- .../smartsheet/calendar/MonthView.vue | 4 ++-- .../smartsheet/calendar/VRecordCard.vue | 2 +- .../calendar/WeekView/DateTimeField.vue | 18 +++++++++++------- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/packages/nc-gui/components/smartsheet/calendar/MonthView.vue b/packages/nc-gui/components/smartsheet/calendar/MonthView.vue index be6ec75ea6..398244a090 100644 --- a/packages/nc-gui/components/smartsheet/calendar/MonthView.vue +++ b/packages/nc-gui/components/smartsheet/calendar/MonthView.vue @@ -629,7 +629,7 @@ const isDateSelected = (date: dayjs.Dayjs) => {
{{ day }}
@@ -653,7 +653,7 @@ const isDateSelected = (date: dayjs.Dayjs) => { isDateSelected(day) || (focusedDate && dayjs(day).isSame(focusedDate, 'day')), '!text-gray-400': !isDayInPagedMonth(day), }" - class="text-right relative group last:border-r-0 text-sm h-full border-r-1 border-b-1 border-gray-200 font-medium hover:bg-gray-50 text-gray-800 bg-white" + class="text-right relative group last:border-r-0 text-sm h-full border-r-1 border-b-1 border-gray-100 font-medium hover:bg-gray-50 text-gray-800 bg-white" data-testid="nc-calendar-month-day" @click="selectDate(day)" > diff --git a/packages/nc-gui/components/smartsheet/calendar/VRecordCard.vue b/packages/nc-gui/components/smartsheet/calendar/VRecordCard.vue index a9b3ca080a..c4ac0b4345 100644 --- a/packages/nc-gui/components/smartsheet/calendar/VRecordCard.vue +++ b/packages/nc-gui/components/smartsheet/calendar/VRecordCard.vue @@ -51,7 +51,7 @@ const emit = defineEmits(['resize-start']) 'group-hover:(border-brand-500)': resize, '!border-brand-500 border-1': selected || hover, }" - class="relative flex items-center h-full ml-0.25 border-1 border-gray-50" + class="relative flex items-center h-full ml-0.25 border-1 border-transparent" >
{ :class="{ 'text-brand-500': date[0].isSame(dayjs(), 'date'), }" - class="w-1/7 text-center text-sm text-gray-500 w-full py-1 border-gray-200 last:border-r-0 border-b-0 border-l-1 border-r-0 bg-gray-50" + class="w-1/7 text-center text-sm text-gray-500 w-full py-1 border-gray-100 last:border-r-0 border-b-0 border-l-1 border-r-0 bg-gray-50" > {{ dayjs(date[0]).format('DD ddd') }}
@@ -766,7 +770,7 @@ const isOverflowAcrossHourRange = (hour: dayjs.Dayjs) => { :class="{ 'border-1 !border-brand-500 bg-gray-50': hour.isSame(selectedTime, 'hour'), }" - class="text-center relative h-20 text-sm text-gray-500 w-full hover:bg-gray-50 py-1 border-transparent border-1 border-x-gray-200 border-t-gray-200" + class="text-center relative h-20 text-sm text-gray-500 w-full hover:bg-gray-50 py-1 border-transparent border-1 border-x-gray-100 border-t-gray-100" data-testid="nc-calendar-week-hour" @click=" () => {