feat(print): implement stylesheet for global note printing

This commit is contained in:
Elian Doran 2025-01-31 20:24:19 +02:00
parent c878a6d2fd
commit d5d7c1565e
No known key found for this signature in database

View File

@ -1605,3 +1605,52 @@ body.electron.platform-darwin:not(.native-titlebar) .tab-row-container {
background: var(--hover-item-background-color);
color: var(--hover-item-text-color);
}
@media print {
.tab-row-container,
#launcher-pane,
#left-pane,
#right-pane,
.title-row .button-widget,
.ribbon-container {
display: none !important;
}
body,
#root-widget,
#rest-pane > div.component:first-child,
.note-detail-printable,
.note-detail-editable-text-editor {
height: unset !important;
overflow: auto;
}
html,
body {
height: unset !important;
overflow: visible;
position: unset;
}
#root-widget,
#horizontal-main-container,
#rest-pane,
#vertical-main-container,
#center-pane,
.split-note-container-widget,
.note-split {
display: block !important;
overflow: auto;
}
#rest-pane,
.note-split {
width: 100% !important;
max-width: unset !important;
}
.component {
contain: none !important;
}
}