fix: Scrollposition breiter Tabellen bleibt bei der Aktualisierung, Knopfspalte rechts fest; Version 0.1.15-rc3
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@ -1103,7 +1103,12 @@ document.querySelectorAll("[data-refresh]").forEach(function (el) {
|
||||
if (r.status === 401) { window.location.href = "/ui/login"; return null; }
|
||||
return r.ok ? r.text() : null;
|
||||
}).then(function (text) {
|
||||
if (text !== null && text !== undefined) { el.innerHTML = text; }
|
||||
if (text === null || text === undefined || text === el._letzterInhalt) { return; }
|
||||
// Die Scrollposition breiter Tabellen merken: Das Ersetzen würde sie sonst alle paar Sekunden zurücksetzen.
|
||||
var breit = Array.prototype.map.call(el.querySelectorAll(".breit"), function (b) { return b.scrollLeft; });
|
||||
el.innerHTML = text;
|
||||
el._letzterInhalt = text;
|
||||
el.querySelectorAll(".breit").forEach(function (b, i) { if (breit[i]) { b.scrollLeft = breit[i]; } });
|
||||
}).catch(function () {});
|
||||
}, ms);
|
||||
});
|
||||
@ -1184,7 +1189,7 @@ td.zeit{white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--muted);
|
||||
select,textarea{font:inherit;padding:.5rem .65rem;border-radius:8px;border:1px solid var(--border);background:var(--surface);color:var(--text);min-width:0}
|
||||
textarea{width:100%;resize:vertical}select:focus,textarea:focus{outline:2px solid var(--accent);outline-offset:-1px}
|
||||
button:disabled{opacity:.5;cursor:not-allowed}button.danger:hover{border-color:var(--danger);color:var(--danger)}
|
||||
td.aktionen{white-space:nowrap}td.aktionen form{display:inline-block;margin:0 .15rem 0 0}
|
||||
td.aktionen{white-space:nowrap}td.aktionen{position:sticky;right:0;background:var(--surface);box-shadow:-.6rem 0 .6rem -.6rem rgba(0,0,0,.35)}td.aktionen form{display:inline-block;margin:0 .15rem 0 0}
|
||||
.formular{display:grid;grid-template-columns:repeat(auto-fit,minmax(13rem,1fr));gap:.8rem 1rem;align-items:end}
|
||||
.formular label{display:flex;flex-direction:column;gap:.25rem;font-size:.85rem;color:var(--muted)}
|
||||
.formular .haken{flex-direction:row;align-items:center;gap:.45rem;color:var(--text)}.formular input[type=checkbox]{width:1.05rem;height:1.05rem;accent-color:var(--accent)}
|
||||
|
||||
Reference in New Issue
Block a user