poprawki
This commit is contained in:
@@ -1,25 +1,9 @@
|
||||
(function () {
|
||||
const t = localStorage.getItem('theme') || 'dark';
|
||||
document.documentElement.setAttribute('data-theme', t);
|
||||
// prosty "try again"
|
||||
document.querySelector('[data-action="try-again"]')?.addEventListener('click', () => {
|
||||
location.reload();
|
||||
});
|
||||
// kopiowanie logs
|
||||
document.querySelector('[data-action="copy-text"]')?.addEventListener('click', (e) => {
|
||||
const sel = e.currentTarget.getAttribute('data-target');
|
||||
const el = sel && document.querySelector(sel);
|
||||
if (!el) return;
|
||||
const txt = el.textContent || '';
|
||||
navigator.clipboard.writeText(txt).then(() => {
|
||||
const toast = document.getElementById('toast');
|
||||
if (toast) {
|
||||
toast.textContent = 'Copied!';
|
||||
toast.classList.add('show');
|
||||
setTimeout(() => toast.classList.remove('show'), 1200);
|
||||
}
|
||||
});
|
||||
});
|
||||
})();
|
||||
|
||||
|
||||
|
@@ -248,7 +248,6 @@
|
||||
|
||||
const expanded = btn.getAttribute('aria-expanded') === 'true';
|
||||
panel.hidden = !expanded;
|
||||
// usuń/ustaw inline display spójnie z hidden
|
||||
panel.style.display = expanded ? '' : 'none';
|
||||
|
||||
const label = expanded ? 'Collapse' : 'Expand';
|
||||
|
@@ -65,8 +65,7 @@ user_ip: {{ request.remote_addr if request else '' }}
|
||||
user_agent: {{ request.headers.get('User-Agent') if request else '' }}
|
||||
</pre>
|
||||
<div class="details-actions">
|
||||
<button class="btn tiny" type="button" data-action="copy-text"
|
||||
data-target="#error-dump">Copy</button>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</details>
|
||||
|
Reference in New Issue
Block a user