feat: implement mobile reader header and navigation components with updated icon support
This commit is contained in:
@@ -200,6 +200,9 @@ export function mount(containerId, data, dotNetHelper) {
|
||||
width = container.clientWidth || 400;
|
||||
height = container.clientHeight || 400;
|
||||
|
||||
// Clean up any existing SVG to prevent duplicates
|
||||
container.querySelectorAll("svg").forEach(el => el.remove());
|
||||
|
||||
// Create SVG
|
||||
svgElement = d3.select(container).append("svg")
|
||||
.attr("viewBox", [0, 0, width, height])
|
||||
|
||||
Reference in New Issue
Block a user