diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2025-06-13 20:13:54 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2025-06-15 02:31:02 +0200 |
commit | 985723c95435f0bd9a0f33e8cdd1f43053d2d56c (patch) | |
tree | bb8c8d8169804f52991e0cc18c4f941880003c68 /src/popover.js | |
parent | b80bdf8b3d4a3fbbbafe605f6eae9ab3a20e0669 (diff) |
CSS: Improve style for maximized popovers.
In particular, fix a bug where not the entire height was used for the
popover body.
Diffstat (limited to 'src/popover.js')
-rw-r--r-- | src/popover.js | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/popover.js b/src/popover.js index bdcd5ae..7313ce1 100644 --- a/src/popover.js +++ b/src/popover.js @@ -1655,18 +1655,19 @@ const formatFeaturePropertiesToHTML = function(properties) { const tr = document.createElement('tr'); tbody.appendChild(tr); - const td1 = document.createElement('td'); - tr.appendChild(td1); + const th = document.createElement('th'); + th.setAttribute('scope', 'row'); + tr.appendChild(th); const textDesc = document.createTextNode(desc); - td1.appendChild(textDesc); + th.appendChild(textDesc); - const td2 = document.createElement('td'); - tr.appendChild(td2); + const td = document.createElement('td'); + tr.appendChild(td); const v = formatValue(properties[key], opts); if (v != null) { - td2.appendChild(v); + td.appendChild(v); } - opts?.classes?.forEach?.((c) => td2.classList.add(c)); + opts?.classes?.forEach?.((c) => td.classList.add(c)); }); const content = document.createElement('div'); |