|
|
@@ -7,3 +7,15 @@
|
|
|
.drawio-viewer * {
|
|
|
box-sizing: content-box;
|
|
|
}
|
|
|
+
|
|
|
+// Revert host-page CSS that leaks into HTML rendered inside <foreignObject>.
|
|
|
+// drawio sizes each cell using UA-default HTML metrics and clips overflow via
|
|
|
+// an inline max-height wrapper, so non-default styles (e.g. line-height,
|
|
|
+// margin from a wrapping `.wiki` ruleset) cause label content to be cut off.
|
|
|
+.drawio-viewer foreignObject {
|
|
|
+ h1, h2, h3, h4, h5, h6,
|
|
|
+ p, ul, ol, li, blockquote,
|
|
|
+ img, video, table {
|
|
|
+ all: revert;
|
|
|
+ }
|
|
|
+}
|