frontend: kleinere UI-Bereinigungen (Code & i18n)

- Redundante Rückgabewerte in `overlaySvg()` entfernt
- `aria-labelledby` des Editors ersetzt durch `aria-label` für klarere i18n-Texte
This commit is contained in:
mhoennig
2026-07-22 11:07:42 +02:00
parent 6f9854db52
commit a92a87f135
2 changed files with 3 additions and 4 deletions
+2 -2
View File
@@ -46,7 +46,7 @@
<div class="app" id="app">
<div class="panel editor">
<div class="panel-head">
<span id="editorTitle" data-i18n="editorTitle">Struktur (Text)</span>
<span data-i18n="editorTitle">Struktur (Text)</span>
<button type="button" class="copybtn" id="copy" data-i18n-title="copyTooltip" data-i18n-aria="copyTooltip" title="Text in die Zwischenablage kopieren" aria-label="Text in die Zwischenablage kopieren">
<svg class="ic-copy" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="9" y="9" width="12" height="12" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg>
<svg class="ic-done" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.1" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M20 6L9 17l-5-5"/></svg>
@@ -61,7 +61,7 @@
</div>
</div>
<div class="editor-body">
<textarea id="src" spellcheck="false" aria-labelledby="editorTitle"></textarea>
<textarea id="src" spellcheck="false" data-i18n-aria="editorTitle" aria-label="Struktur (Text)"></textarea>
<details class="agenda">
<summary data-i18n="agenda">Agenda</summary>
<div class="hint" id="hint">