feat: horizontal scroll for code block

This commit is contained in:
Timothy J. Baek 2023-12-08 17:48:31 -08:00
parent a3e2a57324
commit d0633a9499
2 changed files with 9 additions and 1 deletions

View file

@ -14,6 +14,14 @@ html {
word-break: break-word; word-break: break-word;
} }
code {
white-space-collapse: preserve !important;
/* text-wrap: nowrap !important; */
white-space: nowrap;
width: auto;
}
math { math {
margin-top: 1rem; margin-top: 1rem;
} }

View file

@ -372,7 +372,7 @@
{/if} {/if}
</div> </div>
<div class="w-full"> <div class="w-full overflow-hidden">
<div class=" self-center font-bold mb-0.5"> <div class=" self-center font-bold mb-0.5">
{#if message.role === 'user'} {#if message.role === 'user'}
You You