From 7283eb8d998e08e9b3df36677a8133578c1a7b57 Mon Sep 17 00:00:00 2001 From: Ivo Oskamp Date: Fri, 9 Jan 2026 13:52:15 +0100 Subject: [PATCH] Auto-commit local changes before build (2026-01-09 13:52:15) --- .last-branch | 2 +- .../src/templates/layout/base.html | 28 +++++++++++++++++++ docs/changelog.md | 7 +++++ 3 files changed, 36 insertions(+), 1 deletion(-) diff --git a/.last-branch b/.last-branch index d3d1f99..7e2040e 100644 --- a/.last-branch +++ b/.last-branch @@ -1 +1 @@ -v20260109-08-ui-ellipsis-and-remove-objects-header +v20260109-09-ellipsis-reset-on-popup-close diff --git a/containers/backupchecks/src/templates/layout/base.html b/containers/backupchecks/src/templates/layout/base.html index 08e9777..80d95d1 100644 --- a/containers/backupchecks/src/templates/layout/base.html +++ b/containers/backupchecks/src/templates/layout/base.html @@ -196,6 +196,20 @@ } } + function collapseExpandedEllipsis(root) { + try { + if (!root || !root.querySelectorAll) return; + var expanded = root.querySelectorAll('.ellipsis-field.is-expanded'); + if (!expanded || !expanded.length) return; + expanded.forEach(function (el) { + el.classList.remove('is-expanded'); + setEllipsisTitle(el); + }); + } catch (e) { + // no-op + } + } + function setEllipsisTitle(el) { if (!el || el.classList.contains('is-expanded')) { return; @@ -248,6 +262,20 @@ if (!el || !el.classList || !el.classList.contains('ellipsis-field')) return; setEllipsisTitle(el); }); + + // Ensure expanded fields do not persist between popup/modal openings. + document.addEventListener('show.bs.modal', function (e) { + collapseExpandedEllipsis(e.target); + }); + document.addEventListener('hidden.bs.modal', function (e) { + collapseExpandedEllipsis(e.target); + }); + document.addEventListener('show.bs.offcanvas', function (e) { + collapseExpandedEllipsis(e.target); + }); + document.addEventListener('hidden.bs.offcanvas', function (e) { + collapseExpandedEllipsis(e.target); + }); })(); diff --git a/docs/changelog.md b/docs/changelog.md index fac5fc3..a6f6106 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -64,6 +64,13 @@ - Removed the redundant "Objects" heading above the objects table (table column header remains as the single label). - Applied the detail-field truncation behavior consistently across Inbox, Deleted Mail, Run Checks, Daily Jobs, Job Detail, and Admin All Mail popups/pages where long values can occur. +--- + +## v20260109-09-ellipsis-reset-on-popup-close + +- Reset expanded ellipsis fields when a Bootstrap modal is shown or hidden, so expanded state does not persist between openings. +- Added the same reset behavior for Bootstrap offcanvas components to keep behavior consistent across popups. + ================================================================================================================================================ ## v0.1.19 This release delivers a broad set of improvements focused on reliability, transparency, and operational control across mail processing, administrative auditing, and Run Checks workflows. The changes aim to make message handling more robust, provide better insight for administrators, and give operators clearer and more flexible control when reviewing backup runs. -- 2.45.2