Commit 5544254
committed
🤖 Remove overly aggressive mermaid error hiding
The CSS rule [id^="d"][id*="mermaid"] was too broad and hid actual
diagrams, not just error messages. The JavaScript cleanup that searched
for error messages by selector was also unnecessary.
Simplified approach:
- Removed CSS rule that hid all mermaid-related elements
- Only clean up the specific element with our generated ID
- Let mermaid render naturally and show errors via React state
This allows diagrams to display in Storybook while still handling
errors gracefully through the error state UI.
Generated with `cmux`1 parent 8452c3d commit 5544254
2 files changed
+1
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
| 154 | + | |
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | 160 | | |
169 | 161 | | |
170 | 162 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
614 | 614 | | |
615 | 615 | | |
616 | 616 | | |
617 | | - | |
618 | | - | |
619 | | - | |
620 | | - | |
621 | | - | |
622 | 617 | | |
623 | 618 | | |
624 | 619 | | |
| |||
0 commit comments