Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Commit ·
8a721e9
1
Parent(s): ac5f51f
fix banner darkmode issue
Browse files
app/src/content/embeds/banner.html
CHANGED
|
@@ -309,20 +309,6 @@
|
|
| 309 |
lx += dotR * 2 + 4 + t.node().getComputedTextLength() + 12;
|
| 310 |
});
|
| 311 |
|
| 312 |
-
// Background pills (also pass through pointer events)
|
| 313 |
-
const subBBox = subEl.node().getBBox();
|
| 314 |
-
noPtr(canvas.insert('rect', 'text:first-of-type')
|
| 315 |
-
.attr('x', subBBox.x - 8).attr('y', subBBox.y - 3)
|
| 316 |
-
.attr('width', subBBox.width + 16).attr('height', subBBox.height + 6)
|
| 317 |
-
.attr('rx', 4).attr('ry', 4)
|
| 318 |
-
.attr('fill', 'white').attr('fill-opacity', 0.75));
|
| 319 |
-
const legBBox = legG.node().getBBox();
|
| 320 |
-
noPtr(canvas.insert('rect', 'text:first-of-type')
|
| 321 |
-
.attr('x', legBBox.x - 8).attr('y', legBBox.y - 3)
|
| 322 |
-
.attr('width', legBBox.width + 16).attr('height', legBBox.height + 6)
|
| 323 |
-
.attr('rx', 4).attr('ry', 4)
|
| 324 |
-
.attr('fill', 'white').attr('fill-opacity', 0.75));
|
| 325 |
-
|
| 326 |
// Tooltip
|
| 327 |
const tip = d3.select(container).append('div')
|
| 328 |
.style('position', 'absolute').style('pointer-events', 'none')
|
|
|
|
| 309 |
lx += dotR * 2 + 4 + t.node().getComputedTextLength() + 12;
|
| 310 |
});
|
| 311 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 312 |
// Tooltip
|
| 313 |
const tip = d3.select(container).append('div')
|
| 314 |
.style('position', 'absolute').style('pointer-events', 'none')
|