Skip to content

Commit

Permalink
Merge pull request #218 from mgreminger/print-fix
Browse files Browse the repository at this point in the history
fix: fix printing issue when side menu is open
  • Loading branch information
mgreminger authored Nov 21, 2023
2 parents 74f738f + 9170923 commit f3d8125
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,6 @@
if (document.activeElement instanceof HTMLElement) {
document.activeElement.blur();
}
sideNavOpen = false;
await tick();
}
Expand Down Expand Up @@ -1914,6 +1913,16 @@ Please include a link to this sheet in the email to assist in debugging the prob
border-right: solid 1px lightgray;
}
@media print {
:global(nav.bx--side-nav__navigation) {
display: none;
}
:global(div.bx--side-nav__overlay) {
display: none;
}
}
:global(.bx--side-nav__menu a.bx--side-nav__link) {
height: fit-content !important;
padding-right: 0px;
Expand Down Expand Up @@ -1944,6 +1953,7 @@ Please include a link to this sheet in the email to assist in debugging the prob
@media print {
:global(#main-content) {
overflow: visible;
margin-left: 0px;
}
}
Expand Down

0 comments on commit f3d8125

Please sign in to comment.