Commit bb1aef9
committed
Fix Mermaid diagram text truncation caused by section p styling
Root cause: section p { font-size: 1rem } override increased Mermaid
node label text from 14px to 16px, causing foreignObject overflow and
text clipping (e.g., "fifty-fifty" → "fifty-fi").
Solution: Added .mermaid p reset to inherit font-size/line-height/color
from parent (.nodeLabel { font-size: 14px !important }), preventing
global paragraph styles from breaking diagram layout.
Regression introduced when MDX paragraph styling was added without
scoping exclusions for SVG content.1 parent 7339f43 commit bb1aef9
1 file changed
+31
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
0 commit comments