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
+1 -2
View File
@@ -89,9 +89,8 @@ function svgEl(name, attrs){
return e;
}
function overlaySvg(cls, w, h){
const svg = svgEl('svg', {class:'cheap-overlay ' + cls, width:w, height:h,
return svgEl('svg', {class:'cheap-overlay ' + cls, width:w, height:h,
viewBox:`0 0 ${w.toFixed(1)} ${h.toFixed(1)}`});
return svg;
}
function drawCheapPath(){
out.querySelectorAll('svg.cheap-overlay').forEach(e => e.remove());