This commit is contained in:
@@ -176,7 +176,7 @@
|
||||
padding: .5rem;
|
||||
}
|
||||
|
||||
.editor-button-icon {
|
||||
.editor-button img {
|
||||
display: block;
|
||||
height: 1.65rem;
|
||||
width: 1.65rem;
|
||||
|
||||
+1
-1
@@ -141,7 +141,7 @@
|
||||
</section>
|
||||
<div class="route-control-actions">
|
||||
<button id="editor-button" class="editor-button" type="button" aria-label="Streckenverwaltung öffnen" title="Streckenverwaltung öffnen" aria-haspopup="dialog" aria-expanded="false" aria-controls="editor-dialog">
|
||||
<img class="editor-button-icon" src="images/icons/route-management.svg" alt="" aria-hidden="true">
|
||||
<img src="images/icons/route-management.svg" alt="" aria-hidden="true">
|
||||
</button>
|
||||
<button id="route-control-new" class="editor-primary-button" type="button">Neue lokale Strecke</button>
|
||||
</div>
|
||||
|
||||
Vendored
+11
-3
@@ -27,6 +27,14 @@
|
||||
|
||||
const versioned = path => `${path}${path.includes('?') ? '&' : '?'}v=${encodeURIComponent(versions.app)}`;
|
||||
|
||||
function schedule(callback, delay = 0) {
|
||||
if (typeof globalThis.setTimeout === 'function') {
|
||||
return globalThis.setTimeout(callback, delay);
|
||||
}
|
||||
callback();
|
||||
return null;
|
||||
}
|
||||
|
||||
function setStatusText(text, immediate = false) {
|
||||
if (!statusText) return;
|
||||
statusTransition += 1;
|
||||
@@ -37,7 +45,7 @@
|
||||
return;
|
||||
}
|
||||
statusText.classList.add('is-fading');
|
||||
globalThis.setTimeout(() => {
|
||||
schedule(() => {
|
||||
if (transition !== statusTransition) return;
|
||||
statusText.textContent = text;
|
||||
statusText.classList.remove('is-fading');
|
||||
@@ -139,9 +147,9 @@
|
||||
if (typeof globalThis.requestAnimationFrame === 'function') {
|
||||
globalThis.requestAnimationFrame(showEnter);
|
||||
} else {
|
||||
globalThis.setTimeout(showEnter, 0);
|
||||
schedule(showEnter);
|
||||
}
|
||||
globalThis.setTimeout(() => {
|
||||
schedule(() => {
|
||||
if (actionStatus) actionStatus.hidden = true;
|
||||
}, 220);
|
||||
enter.focus();
|
||||
|
||||
Reference in New Issue
Block a user