Fix light mode summary text
This commit is contained in:
+2
-1
@@ -2692,7 +2692,8 @@ body.page-dashboard .content {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.day-summary-card__title {
|
.day-summary-card__title {
|
||||||
color: #fff;
|
color: rgba(18, 48, 75, 0.92);
|
||||||
|
text-shadow: 0 10px 28px rgba(255, 255, 255, 0.72);
|
||||||
}
|
}
|
||||||
|
|
||||||
.day-chip {
|
.day-chip {
|
||||||
|
|||||||
@@ -3,6 +3,9 @@ $dayDateLabel = format_display_date((string) $dayEntry['date']);
|
|||||||
$dayWeekday = strtok($dayDateLabel, ',');
|
$dayWeekday = strtok($dayDateLabel, ',');
|
||||||
$dayBackground = is_string($dayEntry['background_image_url'] ?? null) ? (string) $dayEntry['background_image_url'] : null;
|
$dayBackground = is_string($dayEntry['background_image_url'] ?? null) ? (string) $dayEntry['background_image_url'] : null;
|
||||||
$summaryComment = trim((string) ($dayEntry['summary']['comment'] ?? $dayEntry['summary_comment'] ?? ''));
|
$summaryComment = trim((string) ($dayEntry['summary']['comment'] ?? $dayEntry['summary_comment'] ?? ''));
|
||||||
|
if (preg_match('/^\s*-?\s*(?:Stimmung|Energie|Stress)\s*:\s*0\s*$/iu', $summaryComment) === 1) {
|
||||||
|
$summaryComment = '';
|
||||||
|
}
|
||||||
$summaryMood = normalize_signal_value($dayEntry['summary']['mood'] ?? $dayEntry['summary_mood'] ?? 0);
|
$summaryMood = normalize_signal_value($dayEntry['summary']['mood'] ?? $dayEntry['summary_mood'] ?? 0);
|
||||||
$summaryEnergy = normalize_signal_value($dayEntry['summary']['energy'] ?? $dayEntry['summary_energy'] ?? 0);
|
$summaryEnergy = normalize_signal_value($dayEntry['summary']['energy'] ?? $dayEntry['summary_energy'] ?? 0);
|
||||||
$summaryStress = normalize_signal_value($dayEntry['summary']['stress'] ?? $dayEntry['summary_stress'] ?? 0);
|
$summaryStress = normalize_signal_value($dayEntry['summary']['stress'] ?? $dayEntry['summary_stress'] ?? 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user