Skip to content

Commit

Permalink
fix(css): Fix print view in single-file shares
Browse files Browse the repository at this point in the history
Signed-off-by: Jonas <[email protected]>
  • Loading branch information
mejo- committed Nov 29, 2023
1 parent 52769cd commit 4501ba0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/components/RichTextReader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,4 @@ export default {
<style lang="scss">
@import './../css/prosemirror';
@import './../css/print';
@media print {
// Hide Content behind modal, this also hides the sidebar if open
#content {
display: none;
}
}
</style>
17 changes: 17 additions & 0 deletions src/css/print.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,23 @@
overflow: visible!important;
}

#header {
display: none!important;
}

#content {
display: block!important;
position: relative!important;
border-radius: 0;
margin: 0;
width: 100%;
height: fit-content;
}

footer {
display: none!important;
}

#viewer[data-handler='text'] {
// Hide top border
border: none;
Expand Down

0 comments on commit 4501ba0

Please sign in to comment.