asab_webui_shell 25.2.7 → 25.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -474,6 +474,11 @@ class Application extends _react.Component {
|
|
|
474
474
|
}
|
|
475
475
|
componentDidMount() {
|
|
476
476
|
document.addEventListener("keyup", this._handleKeyUp, false);
|
|
477
|
+
|
|
478
|
+
// Add print-landscape class to body if not present
|
|
479
|
+
if (!document.body.classList.contains('print-landscape')) {
|
|
480
|
+
document.body.classList.add('print-landscape');
|
|
481
|
+
}
|
|
477
482
|
}
|
|
478
483
|
componentWillUnmount() {
|
|
479
484
|
document.removeEventListener("keyup", this._handleKeyUp, false);
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
@page print-portrait {
|
|
2
|
-
size: portrait;
|
|
2
|
+
size: A4 portrait;
|
|
3
3
|
}
|
|
4
|
+
|
|
5
|
+
@page print-landscape {
|
|
6
|
+
size: A4 landscape;
|
|
7
|
+
margin: 2cm 1cm 1.5cm;
|
|
8
|
+
}
|
|
9
|
+
|
|
4
10
|
@media print {
|
|
5
|
-
@page {
|
|
6
|
-
size: A4 landscape;
|
|
7
|
-
margin: 2cm 1cm 1.5cm;
|
|
8
|
-
}
|
|
9
11
|
|
|
10
12
|
.print-portrait {
|
|
11
13
|
page: print-portrait;
|
|
12
14
|
}
|
|
15
|
+
.print-landscape {
|
|
16
|
+
page: print-landscape;
|
|
17
|
+
}
|
|
13
18
|
|
|
14
19
|
// Dont display page scrollbar in chrome
|
|
15
20
|
::-webkit-scrollbar {
|