diff --git a/src/managers/AllDayManager.ts b/src/managers/AllDayManager.ts index e3bd271..8cb2262 100644 --- a/src/managers/AllDayManager.ts +++ b/src/managers/AllDayManager.ts @@ -551,11 +551,7 @@ export class AllDayManager { const gridRow = parseInt(event.style.gridRow) || 1; if (gridRow === 4) { - // Store original content before converting to indicator - if (!event.dataset.originalTitle) { - event.dataset.originalTitle = event.dataset.title || event.innerHTML; - } - + // Convert row 4 events to indicators const overflowCount = this.actualRowCount - 3; // Total overflow rows event.classList.add('max-event-overflow'); @@ -586,9 +582,7 @@ export class AllDayManager { // Restore original title from data-title if (htmlEvent.dataset.title) { htmlEvent.innerHTML = htmlEvent.dataset.title; - } else if (htmlEvent.dataset.originalTitle) { - htmlEvent.innerHTML = htmlEvent.dataset.originalTitle; - } + } }); // Show all hidden events diff --git a/src/utils/ColumnDetectionUtils.ts b/src/utils/ColumnDetectionUtils.ts index a7c488a..28bf816 100644 --- a/src/utils/ColumnDetectionUtils.ts +++ b/src/utils/ColumnDetectionUtils.ts @@ -67,6 +67,22 @@ export class ColumnDetectionUtils { return null; } + /** + * Get column bounds by Date + */ + public static getColumnBoundsByDate(date: Date): ColumnBounds | null { + if (this.columnBoundsCache.length === 0) { + this.updateColumnBoundsCache(); + } + + // Convert Date to YYYY-MM-DD format + var dateString = date.toISOString().split('T')[0]; + + // Find column that matches the date + var column = this.columnBoundsCache.find(col => col.date === dateString); + return column || null; + } + /** * Clear cache (useful for testing or when DOM structure changes) */