UI: fix codeblocks overflowing on mobile

This commit is contained in:
oobabooga 2025-01-02 16:48:24 -08:00
parent 75f1b5ccde
commit 973255cb0b

View File

@ -540,6 +540,7 @@ div.svelte-362y77>*, div.svelte-362y77>.form>* {
.message-body pre > code { .message-body pre > code {
white-space: pre !important; white-space: pre !important;
overflow-x: auto !important; overflow-x: auto !important;
max-width: calc(100dvw - 39px);
border: 1px solid #666; border: 1px solid #666;
border-radius: 5px; border-radius: 5px;
font-size: 82%; font-size: 82%;