From 7d1cdad90f98879b41e41b9cdf24a1892ec47ecb Mon Sep 17 00:00:00 2001 From: Anbarasu Date: Wed, 17 Apr 2024 21:23:53 +0530 Subject: [PATCH] fix: update calendar grid styles (#8262) * fix: update calendar grid styles * fix: delete record should be removed from the calendar grid * fix: drag drop from side menu * fix: optimize data fetching * fix: hide attachment links * fix: prepare for drag drop from all sidebar filters * fix: prepare for drag drop from all sidebar filters * fix: show tooltips * fix: hide sidemenu by default * fix: update calendar tab styles * fix: update year & date selectors * fix: update year & date selectors * fix: showing calendar range is null * fix: update playwright tests * fix: update side bar styles * fix: minor font corrections * fix: time alignment, weekend shade * fix: space between date & time display in record sidebar * fix: view settings modal width --------- Co-authored-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- packages/nc-gui/assets/style.scss | 4 + .../nc-gui/components/nc/DateWeekSelector.vue | 41 +-- .../components/nc/MonthYearSelector.vue | 16 +- packages/nc-gui/components/nc/Tooltip.vue | 6 +- .../components/smartsheet/PlainCell.vue | 7 +- .../calendar/DayView/DateTimeField.vue | 270 ++++++++++++------ .../smartsheet/calendar/MonthView.vue | 19 +- .../smartsheet/calendar/RecordCard.vue | 11 +- .../smartsheet/calendar/SideMenu.vue | 66 +++-- .../smartsheet/calendar/SideRecordCard.vue | 18 +- .../smartsheet/calendar/VRecordCard.vue | 15 +- .../calendar/WeekView/DateTimeField.vue | 17 +- .../smartsheet/calendar/YearView.vue | 13 +- .../components/smartsheet/calendar/index.vue | 8 +- .../smartsheet/expanded-form/index.vue | 4 +- .../smartsheet/toolbar/CalendarMode.vue | 14 +- .../smartsheet/toolbar/CalendarRange.vue | 2 +- .../composables/useCalendarViewStore.ts | 16 +- .../tests/db/views/viewCalendar.spec.ts | 17 +- 19 files changed, 373 insertions(+), 191 deletions(-) diff --git a/packages/nc-gui/assets/style.scss b/packages/nc-gui/assets/style.scss index b00c4bcbaf..d2d59b0c02 100644 --- a/packages/nc-gui/assets/style.scss +++ b/packages/nc-gui/assets/style.scss @@ -808,3 +808,7 @@ svg.nc-virtual-cell-icon { .ant-switch-checked:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #3366ff; } + +.text-nowrap{ + text-wrap: nowrap; +} \ No newline at end of file diff --git a/packages/nc-gui/components/nc/DateWeekSelector.vue b/packages/nc-gui/components/nc/DateWeekSelector.vue index 5109561690..a3c901727c 100644 --- a/packages/nc-gui/components/nc/DateWeekSelector.vue +++ b/packages/nc-gui/components/nc/DateWeekSelector.vue @@ -9,6 +9,7 @@ interface Props { activeDates?: Array isMondayFirst?: boolean isWeekPicker?: boolean + disableHeader?: boolean disablePagination?: boolean selectedWeek?: { start: dayjs.Dayjs @@ -23,6 +24,7 @@ const props = withDefaults(defineProps(), { isMondayFirst: true, pageDate: dayjs(), isWeekPicker: false, + disableHeader: false, disablePagination: false, activeDates: [] as Array, selectedWeek: null, @@ -145,14 +147,15 @@ const paginate = (action: 'next' | 'prev') => { class="flex flex-col" >
- - + +