From 9d9cced7c4f0ec86c0bd7678c78c2c4273bd6297 Mon Sep 17 00:00:00 2001 From: Bart van Andel Date: Sun, 6 Apr 2025 01:26:56 +0200 Subject: [PATCH 1/2] fix: ensure hint tooltips are rendered for all argument types Move hint tooltip from label to form-group container element. This ensures that the tooltip is also displayed for form elements with an inline label, for which pointer-events are disabled (and rightly so) by Bootstrap Material Design. Logic applied to arguments of all types to ensure layout consistency. --- src/web/HTMLIngredient.mjs | 67 ++++++++++++++------------------------ 1 file changed, 24 insertions(+), 43 deletions(-) diff --git a/src/web/HTMLIngredient.mjs b/src/web/HTMLIngredient.mjs index 7eddb32c..91cbed89 100755 --- a/src/web/HTMLIngredient.mjs +++ b/src/web/HTMLIngredient.mjs @@ -49,15 +49,14 @@ class HTMLIngredient { toHtml() { let html = "", i, m, eventFn; + const hintHtml = this.hint ? `data-toggle="tooltip" title="${this.hint}"` : ""; switch (this.type) { case "string": case "binaryString": case "byteArray": - html += `
- + html += `
+ - + html += `
+ `; break; case "toggleString": - html += `
+ html += `
- + `; break; case "number": - html += `
- + html += `
+ `; break; case "boolean": - html += `
+ html += `
-