|
|
@ -155,9 +155,9 @@ const calendarData = computed(() => { |
|
|
|
position, |
|
|
|
position, |
|
|
|
id, |
|
|
|
id, |
|
|
|
style: { |
|
|
|
style: { |
|
|
|
width: `calc(max(${spanDays} * ${perDayWidth}px, ${perDayWidth}px))`, |
|
|
|
width: `calc(max(${spanDays * perDayWidth - 10}px, ${perDayWidth - 10}px))`, |
|
|
|
left: `${startDaysDiff * perDayWidth}px`, |
|
|
|
left: `${startDaysDiff * perDayWidth + 4}px`, |
|
|
|
top: `${suitableRow * 28 + suitableRow * 8}px`, |
|
|
|
top: `${suitableRow * 28 + Math.max(suitableRow + 1, 1) * 8}px`, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}) |
|
|
|
}) |
|
|
@ -538,7 +538,7 @@ const addRecord = (date: dayjs.Dayjs) => { |
|
|
|
></div> |
|
|
|
></div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div |
|
|
|
<div |
|
|
|
class="absolute nc-scrollbar-md overflow-y-auto mt-6 pointer-events-none inset-0" |
|
|
|
class="absolute nc-scrollbar-md overflow-y-auto z-2 mt-6 pointer-events-none inset-0" |
|
|
|
data-testid="nc-calendar-week-record-container" |
|
|
|
data-testid="nc-calendar-week-record-container" |
|
|
|
> |
|
|
|
> |
|
|
|
<template v-for="(record, id) in calendarData" :key="id"> |
|
|
|
<template v-for="(record, id) in calendarData" :key="id"> |
|
|
@ -595,7 +595,7 @@ const addRecord = (date: dayjs.Dayjs) => { |
|
|
|
&:after { |
|
|
|
&:after { |
|
|
|
@apply rounded-b-sm pointer-events-none absolute inset-0 w-full h-full; |
|
|
|
@apply rounded-b-sm pointer-events-none absolute inset-0 w-full h-full; |
|
|
|
content: ''; |
|
|
|
content: ''; |
|
|
|
z-index: 3; |
|
|
|
z-index: 1; |
|
|
|
box-shadow: 2px 0 0 #3366ff, -2px 0 0 #3366ff, 0 2px 0 #3366ff !important; |
|
|
|
box-shadow: 2px 0 0 #3366ff, -2px 0 0 #3366ff, 0 2px 0 #3366ff !important; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|