From 9e90e30d9fed2556d890d5908e6cf79276901517 Mon Sep 17 00:00:00 2001 From: MarekWo Date: Sat, 21 Mar 2026 13:33:19 +0100 Subject: [PATCH] refactor(settings): compact table layout with tooltip info icons Replace vertical form fields with table rows for less screen space. Descriptions moved to (i) tooltip icons on hover/touch. Co-Authored-By: Claude Opus 4.6 --- app/static/js/app.js | 5 ++++ app/templates/base.html | 66 ++++++++++++++++++++++------------------- 2 files changed, 41 insertions(+), 30 deletions(-) diff --git a/app/static/js/app.js b/app/static/js/app.js index b655165..4c85225 100644 --- a/app/static/js/app.js +++ b/app/static/js/app.js @@ -1711,6 +1711,11 @@ document.addEventListener('DOMContentLoaded', () => { const settingsModal = document.getElementById('settingsModal'); if (settingsModal) { settingsModal.addEventListener('show.bs.modal', loadDmRetrySettings); + settingsModal.addEventListener('shown.bs.modal', () => { + settingsModal.querySelectorAll('[data-bs-toggle="tooltip"]').forEach(el => { + bootstrap.Tooltip.getOrCreateInstance(el); + }); + }); } const dmRetryForm = document.getElementById('dmRetrySettingsForm'); diff --git a/app/templates/base.html b/app/templates/base.html index abbfb1b..bfcc50e 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -354,40 +354,46 @@
When path is known (DIRECT)
-
- - -
Attempts via known path before switching to flood
-
-
- - -
Flood attempts after direct retries exhausted
-
-
- - -
Wait between direct retries
-
+ + + + + + + + + + + + + + + +
Direct retries
Flood retries
Interval (s)
When no path (FLOOD)
-
- - -
Flood attempts when no path is known
-
-
- - -
Wait between flood retries
-
+ + + + + + + + + + + +
Max retries
Interval (s)
Other
-
- - -
Wait for late ACKs after all retries exhausted
-
+ + + + + + + +
Grace period (s)