fix: text overflow

This commit is contained in:
Tomáš Mládek 2023-04-01 18:27:22 +02:00
parent f0cd9c4978
commit 26fd000a46

View file

@ -40,7 +40,7 @@
{#if handled} {#if handled}
<div class="preview" class:detail> <div class="preview" class:detail>
{#if types.text} {#if types.text}
<div class="text"> <div class="text-viewer">
<TextViewer {address} /> <TextViewer {address} />
</div> </div>
{/if} {/if}
@ -97,7 +97,7 @@
} }
img, img,
.text { .text-viewer {
width: 100%; width: 100%;
max-height: 100%; max-height: 100%;
} }
@ -107,9 +107,10 @@
flex-grow: 1; flex-grow: 1;
} }
.text { .text-viewer {
display: flex; display: flex;
margin-bottom: 1rem; margin-bottom: 2rem;
min-height: 0;
} }
img { img {