mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-09-25 09:53:08 +02:00
ui: system logs style update
- Increase padding in admin log dropdown selects - Move admin log filters above the Journaux tabs
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
*
|
||||
* Provides:
|
||||
* - copyLogContent(btn) — copy visible log lines to clipboard
|
||||
* - HTMX afterSwap handler to update active tab class on #sys-tab-panel
|
||||
* - HTMX afterSwap handler to update active tab class on #sys-log-view
|
||||
*/
|
||||
(() => {
|
||||
window.copyLogContent = (btn) => {
|
||||
@@ -44,9 +44,9 @@
|
||||
document.body.removeChild(ta);
|
||||
};
|
||||
|
||||
// Update active tab class after each HTMX swap on #sys-tab-panel
|
||||
// Update active tab class after each HTMX swap on #sys-log-view
|
||||
document.body.addEventListener("htmx:afterSwap", (evt) => {
|
||||
if (!(evt.detail.target && evt.detail.target.id === "sys-tab-panel"))
|
||||
if (!(evt.detail.target && evt.detail.target.id === "sys-log-view"))
|
||||
return;
|
||||
var rc = evt.detail.requestConfig;
|
||||
var tab = null;
|
||||
|
||||
Reference in New Issue
Block a user