fix(calendar): zeige korrekte Fehlermeldung bei zu großem Anhang; nutze --module-accent statt --module-calendar im Dropzone-CSS

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Ulas Kalayci
2026-04-30 07:15:14 +02:00
parent 4aa9bc2a48
commit 6e40ba89df
2 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -1644,7 +1644,7 @@ async function saveEvent(overlay, mode, eventId, existingReminder = null, attach
renderView();
window.oikos?.showToast(mode === 'create' ? t('calendar.createdToast') : t('calendar.savedToast'), 'success');
} catch (err) {
window.oikos?.showToast(err.data?.error ?? t('calendar.saveError'), 'error');
window.oikos?.showToast(err.data?.error ?? err.message ?? t('calendar.saveError'), 'error');
saveBtn.disabled = false;
saveBtn.textContent = mode === 'edit' ? t('common.save') : t('common.create');
}
+7 -7
View File
@@ -453,9 +453,9 @@
gap: var(--space-2);
min-height: 148px;
padding: var(--space-5);
border: 1.5px dashed color-mix(in srgb, var(--module-calendar) 48%, var(--color-border));
border: 1.5px dashed color-mix(in srgb, var(--module-accent) 48%, var(--color-border));
border-radius: var(--radius-md);
background: color-mix(in srgb, var(--module-calendar) 7%, var(--color-surface));
background: color-mix(in srgb, var(--module-accent) 7%, var(--color-surface));
color: var(--color-text-secondary);
text-align: center;
cursor: pointer;
@@ -464,8 +464,8 @@
.document-dropzone:hover,
.document-dropzone--active {
border-color: var(--module-calendar);
background: color-mix(in srgb, var(--module-calendar) 12%, var(--color-surface));
border-color: var(--module-accent);
background: color-mix(in srgb, var(--module-accent) 12%, var(--color-surface));
}
.document-dropzone--active {
@@ -479,8 +479,8 @@
align-items: center;
justify-content: center;
border-radius: var(--radius-md);
color: var(--module-calendar);
background: color-mix(in srgb, var(--module-calendar) 15%, transparent);
color: var(--module-accent);
background: color-mix(in srgb, var(--module-accent) 15%, transparent);
}
.document-dropzone__icon svg {
@@ -502,7 +502,7 @@
}
.document-dropzone__file {
color: var(--module-calendar);
color: var(--module-accent);
font-weight: var(--font-weight-medium);
}