Adam Shaw 4 lat temu
rodzic
commit
15bc5048db

+ 1 - 1
packages-premium

@@ -1 +1 @@
-Subproject commit e6afd334e6de0150027bb9a145c44697afedf24d
+Subproject commit eb23057ba93ad5d9193cf5c3be154451614f9c64

+ 2 - 2
packages/timegrid/src/TimeCol.tsx

@@ -1,11 +1,11 @@
 import {
 import {
   Ref, DateMarker, BaseComponent, createElement, EventSegUiInteractionState, Seg, getSegMeta,
   Ref, DateMarker, BaseComponent, createElement, EventSegUiInteractionState, Seg, getSegMeta,
   DateRange, Fragment, DayCellRoot, NowIndicatorRoot, BgEvent, renderFill,
   DateRange, Fragment, DayCellRoot, NowIndicatorRoot, BgEvent, renderFill,
-  DateProfile, config, buildEventRangeKey, sortEventSegs, SegInput, memoize,
+  DateProfile, config, buildEventRangeKey, sortEventSegs, SegInput, memoize, SegEntryGroup
 } from '@fullcalendar/common'
 } from '@fullcalendar/common'
 import { TimeColsSeg } from './TimeColsSeg'
 import { TimeColsSeg } from './TimeColsSeg'
 import { TimeColsSlatsCoords } from './TimeColsSlatsCoords'
 import { TimeColsSlatsCoords } from './TimeColsSlatsCoords'
-import { computeFgSegPlacements, SegEntryGroup, TimeColSegRect } from './event-placement'
+import { computeFgSegPlacements, TimeColSegRect } from './event-placement'
 import { TimeColEvent } from './TimeColEvent'
 import { TimeColEvent } from './TimeColEvent'
 import { TimeColMisc } from './TimeColMisc'
 import { TimeColMisc } from './TimeColMisc'
 
 

+ 3 - 2
packages/timegrid/src/styles/timegrid-event.css

@@ -24,7 +24,8 @@
 }
 }
 
 
 .fc-timegrid-event-more {
 .fc-timegrid-event-more {
-  position: absolute;
+  position: absolute; // TODO: converge with fc-timegrid-event below?
+  top: 0; // for when not yet positioned
   z-index: 999; // hack
   z-index: 999; // hack
   background: #ccc; // TODO: variable?
   background: #ccc; // TODO: variable?
   padding: 2px;
   padding: 2px;
@@ -64,7 +65,7 @@
 
 
   & .fc-timegrid-event {
   & .fc-timegrid-event {
     position: absolute; // absolute WITHIN the harness
     position: absolute; // absolute WITHIN the harness
-    top: 0;
+    top: 0; // for when not yet positioned
     bottom: 1px; // stay away from bottom slot line
     bottom: 1px; // stay away from bottom slot line
     left: 0;
     left: 0;
     right: 0;
     right: 0;