@forcecalendar/interface 1.0.48 → 1.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -222,6 +222,7 @@ export class BaseViewRenderer {
|
|
|
222
222
|
const startMinutes = start.getHours() * 60 + start.getMinutes();
|
|
223
223
|
const durationMinutes = Math.max((end - start) / (1000 * 60), compact ? 20 : 30);
|
|
224
224
|
const color = this.getEventColor(event);
|
|
225
|
+
const textColor = this.getContrastingTextColor(color);
|
|
225
226
|
|
|
226
227
|
const padding = compact ? '4px 8px' : '8px 12px';
|
|
227
228
|
const fontSize = compact ? '11px' : '13px';
|
|
@@ -247,7 +248,7 @@ export class BaseViewRenderer {
|
|
|
247
248
|
left: ${leftPx}; width: ${widthCalc};
|
|
248
249
|
background-color: ${color}; border-radius: ${borderRadius};
|
|
249
250
|
padding: ${padding}; font-size: ${fontSize};
|
|
250
|
-
font-weight: 500; color:
|
|
251
|
+
font-weight: 500; color: ${textColor}; overflow: hidden;
|
|
251
252
|
box-shadow: 0 1px 2px rgba(0,0,0,0.1);
|
|
252
253
|
cursor: pointer; z-index: 5;">
|
|
253
254
|
<div style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">
|