fix(web): stop pdf viewer overflowing
This commit is contained in:
@@ -21,7 +21,7 @@ export default function PdfViewer({ object }: { object: TTSObject }) {
|
|||||||
const proxied = pdfUrl(url);
|
const proxied = pdfUrl(url);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="space-y-3">
|
<div className="flex h-full min-h-0 flex-col gap-3">
|
||||||
<div className="flex items-center justify-between gap-2">
|
<div className="flex items-center justify-between gap-2">
|
||||||
<p className="truncate font-mono text-xs text-zinc-500">{url}</p>
|
<p className="truncate font-mono text-xs text-zinc-500">{url}</p>
|
||||||
<a
|
<a
|
||||||
@@ -36,7 +36,7 @@ export default function PdfViewer({ object }: { object: TTSObject }) {
|
|||||||
<iframe
|
<iframe
|
||||||
src={proxied}
|
src={proxied}
|
||||||
title="PDF preview"
|
title="PDF preview"
|
||||||
className="aspect-[3/4] w-full rounded-lg border border-zinc-800 bg-zinc-950"
|
className="min-h-0 w-full flex-1 rounded-lg border border-zinc-800 bg-zinc-950"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user