mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-17 20:52:14 +01:00
improve calendar current day styling
This commit is contained in:
@@ -526,7 +526,7 @@ function getEventDurationSeconds(dayEvent: DayEvent, dayStr: string): number {
|
|||||||
:style="{ height: SLOT_HEIGHT + 'px' }">
|
:style="{ height: SLOT_HEIGHT + 'px' }">
|
||||||
<span
|
<span
|
||||||
v-if="slot.isHour"
|
v-if="slot.isHour"
|
||||||
class="fc-timegrid-slot-label-cushion text-[0.8125rem] text-muted-foreground leading-none block">
|
class="fc-timegrid-slot-label-cushion text-[0.8125rem] text-muted-foreground leading-none block font-light">
|
||||||
{{ formatSlotLabel(slot.minutes / 60) }}
|
{{ formatSlotLabel(slot.minutes / 60) }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -536,12 +536,30 @@ function getEventDurationSeconds(dayEvent: DayEvent, dayStr: string): number {
|
|||||||
class="flex-1 min-w-0 relative"
|
class="flex-1 min-w-0 relative"
|
||||||
@pointerdown="onSlotPointerDown($event)">
|
@pointerdown="onSlotPointerDown($event)">
|
||||||
<div
|
<div
|
||||||
class="bg-background"
|
class="bg-background relative"
|
||||||
:style="{ height: totalGridHeight + 'px' }">
|
:style="{ height: totalGridHeight + 'px' }">
|
||||||
|
<div
|
||||||
|
class="absolute inset-0 grid"
|
||||||
|
:style="{
|
||||||
|
gridTemplateColumns:
|
||||||
|
'repeat(' + viewDays.length + ', 1fr)',
|
||||||
|
}">
|
||||||
|
<div
|
||||||
|
v-for="day in viewDays"
|
||||||
|
:key="'bg-' + day.format('YYYY-MM-DD')"
|
||||||
|
:style="
|
||||||
|
isToday(day)
|
||||||
|
? {
|
||||||
|
backgroundColor:
|
||||||
|
'var(--theme-color-default-background)',
|
||||||
|
}
|
||||||
|
: undefined
|
||||||
|
" />
|
||||||
|
</div>
|
||||||
<div
|
<div
|
||||||
v-for="slot in slots"
|
v-for="slot in slots"
|
||||||
:key="'lane-' + slot.time"
|
:key="'lane-' + slot.time"
|
||||||
class="fc-timegrid-slot fc-timegrid-slot-lane border-t border-border box-border"
|
class="fc-timegrid-slot fc-timegrid-slot-lane border-t border-border box-border relative"
|
||||||
:class="{
|
:class="{
|
||||||
'fc-timegrid-slot-minor border-dotted':
|
'fc-timegrid-slot-minor border-dotted':
|
||||||
!slot.isHour,
|
!slot.isHour,
|
||||||
|
|||||||
Reference in New Issue
Block a user