Skip to content

Commit 27ee02a

Browse files
committed
Code: fixed close box size,
problem reveled by Gecko and Goanna
1 parent 39f3ffc commit 27ee02a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

presentation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
const createNS = (name) => document.createElementNS(ns, name);
108108
const svg = createNS("svg");
109109
svg.style.cssText = `background-color: ${background}; stroke: ${stroke}; stroke-width: 0.1;
110-
border-left: ${border} thin solid; border-bottom: ${border} thin solid; width: ${size}; position: absolute; top: 0; right: 0`;
110+
border-left: ${border} thin solid; border-bottom: ${border} thin solid; width: ${size}px; position: absolute; top: 0; right: 0`;
111111
svg.setAttribute("viewBox", "0 0 1 1");
112112
svg.innerHTML = `<g><line x1="0.2" y1="0.2" x2="0.8" y2="0.8"/><line x1="0.2" y1="0.8" x2="0.8" y2="0.2"/></g>`;
113113
return svg;

presentation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ window.onload = () => {
361361
const createNS = (name) => document.createElementNS(ns, name);
362362
const svg = createNS("svg");
363363
svg.style.cssText = `background-color: ${background}; stroke: ${stroke}; stroke-width: 0.1;
364-
border-left: ${border} thin solid; border-bottom: ${border} thin solid; width: ${size}; position: absolute; top: 0; right: 0`;
364+
border-left: ${border} thin solid; border-bottom: ${border} thin solid; width: ${size}px; position: absolute; top: 0; right: 0`;
365365
svg.setAttribute("viewBox", "0 0 1 1");
366366
svg.innerHTML = `<g><line x1="0.2" y1="0.2" x2="0.8" y2="0.8"/><line x1="0.2" y1="0.8" x2="0.8" y2="0.2"/></g>`;
367367
return svg;

0 commit comments

Comments
 (0)