From a5dd74842bd068a4deaa4892d02cb3d6c668138f Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 12 May 2022 10:44:36 +0100 Subject: [PATCH] Update print styles to work with dev tools update --- packages/client/src/components/ClientApp.svelte | 3 ++- packages/client/src/components/devtools/DevTools.svelte | 5 +++++ .../client/src/components/devtools/DevToolsHeader.svelte | 5 +++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/packages/client/src/components/ClientApp.svelte b/packages/client/src/components/ClientApp.svelte index 6bd0313c75..d4bbb10f6e 100644 --- a/packages/client/src/components/ClientApp.svelte +++ b/packages/client/src/components/ClientApp.svelte @@ -283,7 +283,8 @@ @media print { #spectrum-root, #clip-root, - #app-root { + #app-root, + #app-body { overflow: visible !important; } } diff --git a/packages/client/src/components/devtools/DevTools.svelte b/packages/client/src/components/devtools/DevTools.svelte index 4bb332da2f..bc7625bd57 100644 --- a/packages/client/src/components/devtools/DevTools.svelte +++ b/packages/client/src/components/devtools/DevTools.svelte @@ -66,4 +66,9 @@ .tab-content { padding: 0 var(--spacing-xl); } + @media print { + .devtools { + display: none; + } + } diff --git a/packages/client/src/components/devtools/DevToolsHeader.svelte b/packages/client/src/components/devtools/DevToolsHeader.svelte index 3ea528be5b..4dfaae610f 100644 --- a/packages/client/src/components/devtools/DevToolsHeader.svelte +++ b/packages/client/src/components/devtools/DevToolsHeader.svelte @@ -71,4 +71,9 @@ .dev-preview-header :global(.spectrum-Picker-label) { color: white !important; } + @media print { + .dev-preview-header { + display: none; + } + }