ui: fix text attachment preview overflow (#29898)
* ui: fix text attachment preview overflow Set the max height to 80dvh and the max width to full on screens below medium and 80vw from medium onward. * style: run formatter
This commit is contained in:
1 parent
f9a95aeb20
commit
2f160ba59a
1 file changed
+2
-7
+2
-7
@@ -10,12 +10,7 @@
|
||||
</script>
|
||||
|
||||
{#if displayTextContent}
|
||||
<div class="px-4 pb-4">
|
||||
<SyntaxHighlightedCode
|
||||
class="max-w-4xl"
|
||||
code={displayTextContent}
|
||||
{language}
|
||||
maxHeight="none"
|
||||
/>
|
||||
<div class="px-4 pb-4 min-h-0 min-w-0 max-w-full md:max-w-[80vw]">
|
||||
<SyntaxHighlightedCode code={displayTextContent} {language} maxHeight="80dvh" />
|
||||
</div>
|
||||
{/if}
|
||||
Reference in new issue
Block a user