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:
+1
-2
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user