File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import DispatcherButton from 'remotedev-app/lib/components/buttons/DispatcherBut
1818import SliderButton from 'remotedev-app/lib/components/buttons/SliderButton' ;
1919import ImportButton from 'remotedev-app/lib/components/buttons/ImportButton' ;
2020import ExportButton from 'remotedev-app/lib/components/buttons/ExportButton' ;
21+ import PrintButton from 'remotedev-app/lib/components/buttons/PrintButton' ;
2122import TestGenerator from 'remotedev-app/lib/components/TestGenerator' ;
2223import SettingsIcon from 'react-icons/lib/md/settings' ;
2324import 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 }
Original file line number Diff line number Diff 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+
3259link( href ='/css/codemirror.css' , rel ="stylesheet" )
3360link( href ='/css/night.css' , rel ="stylesheet" )
You can’t perform that action at this time.
0 commit comments