Skip to content

Commit 6440961

Browse files
committed
1 parent 8cd79cc commit 6440961

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

src/app/containers/App.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import DispatcherButton from 'remotedev-app/lib/components/buttons/DispatcherBut
1818
import SliderButton from 'remotedev-app/lib/components/buttons/SliderButton';
1919
import ImportButton from 'remotedev-app/lib/components/buttons/ImportButton';
2020
import ExportButton from 'remotedev-app/lib/components/buttons/ExportButton';
21+
import PrintButton from 'remotedev-app/lib/components/buttons/PrintButton';
2122
import TestGenerator from 'remotedev-app/lib/components/TestGenerator';
2223
import SettingsIcon from 'react-icons/lib/md/settings';
2324
import LeftIcon from 'react-icons/lib/md/border-left';
@@ -94,6 +95,7 @@ class App extends Component {
9495
<SliderButton isOpen={sliderIsOpen} />
9596
<ImportButton />
9697
<ExportButton liftedState={liftedState} />
98+
<PrintButton />
9799
{!window.isElectron &&
98100
<Button
99101
Icon={RemoteIcon}

src/browser/views/includes/style.jade

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,32 @@ style.
2929
overflow: auto;
3030
height: 100%;
3131
}
32+
33+
@media print {
34+
@page {
35+
size: auto;
36+
margin: 0;
37+
}
38+
39+
body {
40+
position: static;
41+
}
42+
43+
#root > div > div:not(:nth-child(2)) {
44+
display: none !important;
45+
}
46+
47+
#root > div > div:nth-child(2) {
48+
overflow: visible !important;
49+
position: absolute !important;
50+
z-index: 2147483647;
51+
page-break-after: avoid;
52+
}
53+
54+
#root > div > div:nth-child(2) * {
55+
overflow: visible !important;
56+
}
57+
}
58+
3259
link(href='/css/codemirror.css', rel="stylesheet")
3360
link(href='/css/night.css', rel="stylesheet")

0 commit comments

Comments
 (0)