Skip to content

Commit e60a2c4

Browse files
committed
Removed console and sidebar from pdf generation
1 parent 13faecf commit e60a2c4

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

client/modules/User/components/CookieConsent.jsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ const CookieConsentContainer = styled.div`
2525
left: 0;
2626
right: 0;
2727
z-index: 9999;
28+
@media print {
29+
display: none;
30+
}
2831
`;
2932

3033
const CookieConsentDialog = styled.div`

client/styles/layout/_ide.scss

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,27 @@
2020
width: 100%;
2121
height: 100%;
2222
}
23+
24+
@media print {
25+
.sidebar {
26+
display: none;
27+
width: 0;
28+
}
29+
.preview-console {
30+
display: none;
31+
}
32+
.CodeMirror {
33+
height: auto;
34+
overflow: visible;
35+
position: relative;
36+
}
37+
.CodeMirror-scroll {
38+
height: auto;
39+
overflow-y: hidden;
40+
}
41+
.CodeMirror-vscrollbar,
42+
.CodeMirror-hscrollbar,
43+
.CodeMirror-gutters {
44+
display: none;
45+
}
46+
}

0 commit comments

Comments
 (0)