Move calendarweeks etc. in DOM after the month name bar, to make them render on top of it and not under.
This commit is contained in:
		| @@ -541,26 +541,6 @@ window.addEventListener('resize', () => { | |||||||
|       /> |       /> | ||||||
|       <div class="calendar-container"> |       <div class="calendar-container"> | ||||||
|         <div class="calendar-viewport" ref="viewport" :style="viewportBlurStyle"> |         <div class="calendar-viewport" ref="viewport" :style="viewportBlurStyle"> | ||||||
|           <div class="calendar-content" :style="{ height: contentHeight + 'px' }"> |  | ||||||
|             <div |  | ||||||
|               class="weeks-wrapper" |  | ||||||
|               :style="{ |  | ||||||
|                 transform: `translateY(${visibleWeeks.length ? visibleWeeks[0].top : 0}px)`, |  | ||||||
|               }" |  | ||||||
|             > |  | ||||||
|               <CalendarWeek |  | ||||||
|                 v-for="week in visibleWeeks" |  | ||||||
|                 :key="week.virtualWeek" |  | ||||||
|                 :week="week" |  | ||||||
|                 :dragging="isDragging" |  | ||||||
|                 @day-mousedown="handleDayMouseDown" |  | ||||||
|                 @day-mouseenter="handleDayMouseEnter" |  | ||||||
|                 @day-mouseup="handleDayMouseUp" |  | ||||||
|                 @day-touchstart="handleDayTouchStart" |  | ||||||
|                 @event-click="handleEventClick" |  | ||||||
|               /> |  | ||||||
|             </div> |  | ||||||
|           </div> |  | ||||||
|           <div class="month-column-area" :style="{ height: contentHeight + 'px' }"> |           <div class="month-column-area" :style="{ height: contentHeight + 'px' }"> | ||||||
|             <div class="month-labels-container" :style="{ height: '100%' }"> |             <div class="month-labels-container" :style="{ height: '100%' }"> | ||||||
|               <div |               <div | ||||||
| @@ -588,6 +568,26 @@ window.addEventListener('resize', () => { | |||||||
|               </div> |               </div> | ||||||
|             </div> |             </div> | ||||||
|           </div> |           </div> | ||||||
|  |           <div class="calendar-content" :style="{ height: contentHeight + 'px' }"> | ||||||
|  |             <div | ||||||
|  |               class="weeks-wrapper" | ||||||
|  |               :style="{ | ||||||
|  |                 transform: `translateY(${visibleWeeks.length ? visibleWeeks[0].top : 0}px)`, | ||||||
|  |               }" | ||||||
|  |             > | ||||||
|  |               <CalendarWeek | ||||||
|  |                 v-for="week in visibleWeeks" | ||||||
|  |                 :key="week.virtualWeek" | ||||||
|  |                 :week="week" | ||||||
|  |                 :dragging="isDragging" | ||||||
|  |                 @day-mousedown="handleDayMouseDown" | ||||||
|  |                 @day-mouseenter="handleDayMouseEnter" | ||||||
|  |                 @day-mouseup="handleDayMouseUp" | ||||||
|  |                 @day-touchstart="handleDayTouchStart" | ||||||
|  |                 @event-click="handleEventClick" | ||||||
|  |               /> | ||||||
|  |             </div> | ||||||
|  |           </div> | ||||||
|         </div> |         </div> | ||||||
|         <!-- Jogwheel overlay captures drag + wheel over month name column --> |         <!-- Jogwheel overlay captures drag + wheel over month name column --> | ||||||
|         <Jogwheel |         <Jogwheel | ||||||
| @@ -650,6 +650,8 @@ header h1 { | |||||||
| .calendar-content { | .calendar-content { | ||||||
|   position: relative; |   position: relative; | ||||||
|   width: 100%; |   width: 100%; | ||||||
|  |   grid-column: 1; | ||||||
|  |   grid-row: 1; | ||||||
| } | } | ||||||
|  |  | ||||||
| .weeks-wrapper { | .weeks-wrapper { | ||||||
| @@ -662,6 +664,8 @@ header h1 { | |||||||
| .month-column-area { | .month-column-area { | ||||||
|   position: relative; |   position: relative; | ||||||
|   cursor: ns-resize; |   cursor: ns-resize; | ||||||
|  |   grid-column: 2; | ||||||
|  |   grid-row: 1; | ||||||
| } | } | ||||||
|  |  | ||||||
| .month-labels-container { | .month-labels-container { | ||||||
| @@ -687,7 +691,6 @@ header h1 { | |||||||
|   display: flex; |   display: flex; | ||||||
|   align-items: center; |   align-items: center; | ||||||
|   justify-content: center; |   justify-content: center; | ||||||
|   z-index: 5; |  | ||||||
|   overflow: hidden; |   overflow: hidden; | ||||||
|   cursor: ns-resize; |   cursor: ns-resize; | ||||||
|   user-select: none; |   user-select: none; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Leo Vasanko
					Leo Vasanko