Skip to content

Commit

Permalink
fix: fix printing issue when side menu is open
Browse files Browse the repository at this point in the history
Addresses firefox printing issue brought up in #215
  • Loading branch information
mgreminger committed Nov 21, 2023
1 parent 74f738f commit 9170923
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 9170923

Please sign in to comment.