Skip to content

Commit cefa163

Browse files
committed
Fix SVG text cutoff by removing global CSS wildcard
This bug took 40 hours to debug. The * { font-family } selector was overriding the hidden DOM elements used to measure SVG text width, causing the VM to calculate bounding boxes based on Helvetica instead of the target font. I am genuinely disappointed that it was this simple.
1 parent 6083d0e commit cefa163

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/addons/addons/ai-integration/style.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
* {
1+
.container * {
22
font-family: "Helvetica Neue", sans-serif;
33
}
44

@@ -10,6 +10,7 @@
1010
flex-direction: column;
1111
width: 100%;
1212
height: 100%;
13+
font-family: "Helvetica Neue", sans-serif;
1314
}
1415

1516
.content {

0 commit comments

Comments
 (0)