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:
@@ -1644,7 +1644,7 @@ async function saveEvent(overlay, mode, eventId, existingReminder = null, attach
|
|||||||
renderView();
|
renderView();
|
||||||
window.oikos?.showToast(mode === 'create' ? t('calendar.createdToast') : t('calendar.savedToast'), 'success');
|
window.oikos?.showToast(mode === 'create' ? t('calendar.createdToast') : t('calendar.savedToast'), 'success');
|
||||||
} catch (err) {
|
} 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.disabled = false;
|
||||||
saveBtn.textContent = mode === 'edit' ? t('common.save') : t('common.create');
|
saveBtn.textContent = mode === 'edit' ? t('common.save') : t('common.create');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -453,9 +453,9 @@
|
|||||||
gap: var(--space-2);
|
gap: var(--space-2);
|
||||||
min-height: 148px;
|
min-height: 148px;
|
||||||
padding: var(--space-5);
|
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);
|
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);
|
color: var(--color-text-secondary);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
@@ -464,8 +464,8 @@
|
|||||||
|
|
||||||
.document-dropzone:hover,
|
.document-dropzone:hover,
|
||||||
.document-dropzone--active {
|
.document-dropzone--active {
|
||||||
border-color: var(--module-calendar);
|
border-color: var(--module-accent);
|
||||||
background: color-mix(in srgb, var(--module-calendar) 12%, var(--color-surface));
|
background: color-mix(in srgb, var(--module-accent) 12%, var(--color-surface));
|
||||||
}
|
}
|
||||||
|
|
||||||
.document-dropzone--active {
|
.document-dropzone--active {
|
||||||
@@ -479,8 +479,8 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
border-radius: var(--radius-md);
|
border-radius: var(--radius-md);
|
||||||
color: var(--module-calendar);
|
color: var(--module-accent);
|
||||||
background: color-mix(in srgb, var(--module-calendar) 15%, transparent);
|
background: color-mix(in srgb, var(--module-accent) 15%, transparent);
|
||||||
}
|
}
|
||||||
|
|
||||||
.document-dropzone__icon svg {
|
.document-dropzone__icon svg {
|
||||||
@@ -502,7 +502,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.document-dropzone__file {
|
.document-dropzone__file {
|
||||||
color: var(--module-calendar);
|
color: var(--module-accent);
|
||||||
font-weight: var(--font-weight-medium);
|
font-weight: var(--font-weight-medium);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user