Browse Source

fix: missing calendar optmzin on oss

pull/7838/head
DarkPhoenix2704 9 months ago
parent
commit
0884327f43
No known key found for this signature in database
GPG Key ID: 3F76B10622A07849
  1. 5
      packages/nc-gui/components/smartsheet/calendar/DayView/DateTimeField.vue
  2. 5
      packages/nc-gui/components/smartsheet/calendar/MonthView.vue
  3. 5
      packages/nc-gui/components/smartsheet/calendar/WeekView/DateTimeField.vue

5
packages/nc-gui/components/smartsheet/calendar/DayView/DateTimeField.vue

@ -969,9 +969,9 @@ const newRecord = (hour: dayjs.Dayjs) => {
</div>
<div class="absolute inset-0 pointer-events-none">
<div class="relative !ml-[60px]" data-testid="nc-calendar-day-record-container">
<template v-for="(record, rowIndex) in recordsAcrossAllRange.record" :key="rowIndex">
<div
v-for="(record, rowIndex) in recordsAcrossAllRange.record"
:key="rowIndex"
v-if="record.rowMeta.style?.display !== 'none'"
:data-testid="`nc-calendar-day-record-${record.row[displayField!.title!]}`"
:data-unique-id="record.rowMeta.id"
:style="record.rowMeta.style"
@ -1014,6 +1014,7 @@ const newRecord = (hour: dayjs.Dayjs) => {
</LazySmartsheetCalendarVRecordCard>
</LazySmartsheetRow>
</div>
</template>
</div>
</div>
</div>

5
packages/nc-gui/components/smartsheet/calendar/MonthView.vue

@ -772,9 +772,9 @@ const addRecord = (date: dayjs.Dayjs) => {
</div>
</div>
<div class="absolute inset-0 pointer-events-none mt-8 pb-7.5" data-testid="nc-calendar-month-record-container">
<template v-for="(record, recordIndex) in recordsToDisplay.records" :key="recordIndex">
<div
v-for="(record, recordIndex) in recordsToDisplay.records"
:key="recordIndex"
v-if="record.rowMeta.style?.display !== 'none'"
:data-testid="`nc-calendar-month-record-${record.row[displayField!.title!]}`"
:data-unique-id="record.rowMeta.id"
:style="{
@ -818,6 +818,7 @@ const addRecord = (date: dayjs.Dayjs) => {
</LazySmartsheetCalendarRecordCard>
</LazySmartsheetRow>
</div>
</template>
</div>
</div>
</template>

5
packages/nc-gui/components/smartsheet/calendar/WeekView/DateTimeField.vue

@ -805,9 +805,9 @@ const addRecord = (date: dayjs.Dayjs) => {
class="absolute pointer-events-none inset-0 overflow-hidden !mt-[29px]"
data-testid="nc-calendar-week-record-container"
>
<template v-for="(record, rowIndex) in recordsAcrossAllRange.records" :key="rowIndex">
<div
v-for="(record, rowIndex) in recordsAcrossAllRange.records"
:key="rowIndex"
v-if="record.rowMeta.style?.display !== 'none'"
:data-testid="`nc-calendar-week-record-${record.row[displayField!.title!]}`"
:data-unique-id="record.rowMeta!.id"
:style="record.rowMeta!.style "
@ -850,6 +850,7 @@ const addRecord = (date: dayjs.Dayjs) => {
</LazySmartsheetCalendarVRecordCard>
</LazySmartsheetRow>
</div>
</template>
</div>
</div>
</div>

Loading…
Cancel
Save