feat: paginate React cards like print
This commit is contained in:
@@ -1,3 +1,23 @@
|
||||
.paper {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 5cm;
|
||||
}
|
||||
.paper > .sheet {
|
||||
height: 297mm;
|
||||
min-height: 297mm;
|
||||
max-height: 297mm;
|
||||
margin: 0 auto;
|
||||
overflow: hidden;
|
||||
}
|
||||
.paper > .sheet > .sheet-content {
|
||||
height: 297mm;
|
||||
min-height: 297mm;
|
||||
max-height: 297mm;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
scrollbar-gutter: stable;
|
||||
}
|
||||
.viewer-chrome {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
@@ -1471,6 +1491,17 @@ text.uml-step-element-active {
|
||||
}
|
||||
}
|
||||
@media print {
|
||||
.paper {
|
||||
display: block;
|
||||
gap: 0;
|
||||
}
|
||||
.paper > .sheet,
|
||||
.paper > .sheet > .sheet-content {
|
||||
height: auto;
|
||||
min-height: 0;
|
||||
max-height: none;
|
||||
overflow: visible;
|
||||
}
|
||||
.viewer-chrome {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user