From 2661c9899aa2404e66ea642e86a0fd081ce676a9 Mon Sep 17 00:00:00 2001 From: missionfloyd Date: Wed, 21 Jun 2023 07:39:58 -0600 Subject: [PATCH] Format chat for printing (#2793) --- css/chat.css | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/css/chat.css b/css/chat.css index f8cb765a..fcf19ee0 100644 --- a/css/chat.css +++ b/css/chat.css @@ -93,3 +93,22 @@ div.svelte-362y77>*, div.svelte-362y77>.form>* { .message-body :not(pre) > code { white-space: normal !important; } + +@media print { + body { + visibility: hidden; + } + + .chat { + visibility: visible; + position: absolute; + left: 0; + top: 0; + max-width: none; + max-height: none; + width: 100%; + height: fit-content; + display: flex; + flex-direction: column-reverse; + } +}