fix(anhaenge): Anhang-Bereich ruhiger und im Stil der Eingabefelder
Die beiden Texte steckten in .form-hint -- eine spaetere Regel fuer den SSO-Login macht daraus einen umrandeten Kasten in Primaerfarbe. Fuer eine Warnung ist das richtig, fuer eine Bildunterschrift viel zu laut. Eigene leise Klasse statt dessen. "Datei hinzufuegen" sieht jetzt aus wie die Textfelder darueber: gleicher Grund, Rahmen, Radius und Innenabstand, nur linksbuendig und in der gedaempften Textfarbe. Der Leerzustand "Keine Anhaenge" faellt weg -- die Erinnerungsliste macht es genauso, und die Zeile unter dem Knopf sagt ohnehin, was hier hin kann. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
a1f15e33aa
commit
cd6a4698aa
@@ -2355,12 +2355,8 @@ function renderAttachmentRows() {
|
||||
const existing = (state.eventAttachments || []).filter(a => !removed.includes(a.id));
|
||||
const pending = state.pendingAttachments || [];
|
||||
|
||||
if (!existing.length && !pending.length) {
|
||||
const empty = document.createElement('div');
|
||||
empty.className = 'form-hint';
|
||||
empty.textContent = t('attachment_none');
|
||||
list.appendChild(empty);
|
||||
}
|
||||
// Nothing when empty — the reminders list does the same, and the caption
|
||||
// under the button already says what can go here.
|
||||
existing.forEach(a => list.appendChild(attachmentRow({
|
||||
name: a.filename, size: a.size_bytes, contentType: a.content_type,
|
||||
thumbId: a.has_thumb ? a.id : null,
|
||||
|
||||
@@ -176,7 +176,6 @@ const translations = {
|
||||
attachments: 'Anhänge',
|
||||
attachment_add: 'Datei hinzufügen',
|
||||
attachment_hint: 'Max. 10 MB pro Datei, 10 Dateien. PDF, Bilder, Text.',
|
||||
attachment_none: 'Keine Anhänge',
|
||||
attachment_uploading: 'Wird hochgeladen …',
|
||||
attachment_deleted: 'Anhang gelöscht',
|
||||
attachment_delete_confirm: "Anhang „{name}“ löschen?",
|
||||
@@ -1003,7 +1002,6 @@ const translations = {
|
||||
attachments: 'Attachments',
|
||||
attachment_add: 'Add file',
|
||||
attachment_hint: 'Max. 10 MB per file, 10 files. PDF, images, text.',
|
||||
attachment_none: 'No attachments',
|
||||
attachment_uploading: 'Uploading …',
|
||||
attachment_deleted: 'Attachment deleted',
|
||||
attachment_delete_confirm: "Delete attachment “{name}”?",
|
||||
|
||||
Reference in New Issue
Block a user