Skip to content

Commit 8b14b9f

Browse files
Bill LeoutsakosBill Leoutsakos
authored andcommitted
fix(files): scope Markdown print styles
1 parent a7a306a commit 8b14b9f

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/rich-markdown-editor.css

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -562,10 +562,6 @@
562562
}
563563

564564
@media print {
565-
@page {
566-
margin: 18mm;
567-
}
568-
569565
html[data-printing-markdown],
570566
html[data-printing-markdown] body {
571567
width: auto !important;
@@ -624,7 +620,9 @@
624620
-webkit-print-color-adjust: exact;
625621
}
626622

627-
html[data-printing-markdown] [data-markdown-print-active] > :has(> .rich-markdown-prose) {
623+
html[data-printing-markdown]
624+
[data-markdown-print-active]
625+
> :has(> .rich-markdown-prose):not(.hidden) {
628626
display: block !important;
629627
width: 100% !important;
630628
max-width: none !important;

0 commit comments

Comments
 (0)