Implemented the warning icon visibility fix.

This commit is contained in:
Nick Beckley 2026-06-19 22:41:20 +01:00
parent ae064d04b6
commit 4f0c893914
5 changed files with 22 additions and 6 deletions

View File

@ -940,6 +940,7 @@ else
{ {
<div class="plot-lane-board" data-timeline-section="plot-lines" data-plot-line-svg-board style="--scene-count:@timelineColumns.Count"> <div class="plot-lane-board" data-timeline-section="plot-lines" data-plot-line-svg-board style="--scene-count:@timelineColumns.Count">
<svg class="plot-lane-svg-overlay" data-plot-line-svg aria-hidden="true"></svg> <svg class="plot-lane-svg-overlay" data-plot-line-svg aria-hidden="true"></svg>
<svg class="plot-lane-svg-overlay plot-lane-svg-health-overlay" data-plot-line-health-svg aria-hidden="true"></svg>
<div class="lane-board-heading plot-lane-board-heading"> <div class="lane-board-heading plot-lane-board-heading">
<span class="timeline-heading-with-help"> <span class="timeline-heading-with-help">
<button type="button" data-collapse-toggle="plot-lines">Plot line lanes</button> <button type="button" data-collapse-toggle="plot-lines">Plot line lanes</button>

View File

@ -1075,6 +1075,10 @@ body.timeline-inspector-resizing {
overflow: visible; overflow: visible;
} }
.plot-lane-svg-health-overlay {
z-index: 8;
}
.plot-line-svg-path { .plot-line-svg-path {
fill: none; fill: none;
stroke-width: 3.5; stroke-width: 3.5;

File diff suppressed because one or more lines are too long

View File

@ -1589,14 +1589,25 @@
if (!svg) { if (!svg) {
return; return;
} }
let healthSvg = board.querySelector("[data-plot-line-health-svg]");
if (!healthSvg) {
healthSvg = document.createElementNS("http://www.w3.org/2000/svg", "svg");
healthSvg.setAttribute("class", "plot-lane-svg-overlay plot-lane-svg-health-overlay");
healthSvg.setAttribute("data-plot-line-health-svg", "");
healthSvg.setAttribute("aria-hidden", "true");
svg.after(healthSvg);
}
svg.replaceChildren(); svg.replaceChildren();
healthSvg.replaceChildren();
const boardRect = board.getBoundingClientRect(); const boardRect = board.getBoundingClientRect();
const width = Math.max(board.scrollWidth, boardRect.width); const width = Math.max(board.scrollWidth, boardRect.width);
const height = Math.max(board.scrollHeight, boardRect.height); const height = Math.max(board.scrollHeight, boardRect.height);
svg.setAttribute("viewBox", `0 0 ${width} ${height}`); [svg, healthSvg].forEach((layer) => {
svg.setAttribute("width", String(width)); layer.setAttribute("viewBox", `0 0 ${width} ${height}`);
svg.setAttribute("height", String(height)); layer.setAttribute("width", String(width));
layer.setAttribute("height", String(height));
});
const makeSvg = (name, attributes = {}) => { const makeSvg = (name, attributes = {}) => {
const element = document.createElementNS("http://www.w3.org/2000/svg", name); const element = document.createElementNS("http://www.w3.org/2000/svg", name);
@ -1734,7 +1745,7 @@
} }
} }
svg.append(group); healthSvg.append(group);
}; };
const drawConnector = (source, targetRow, colour, type) => { const drawConnector = (source, targetRow, colour, type) => {

File diff suppressed because one or more lines are too long