fix: render attachment preview after upload (#590)
This commit is contained in:
parent
e839007580
commit
b609dca828
2 changed files with 6 additions and 5 deletions
|
|
@ -13,7 +13,7 @@ export const PreviewAttachment = ({
|
|||
|
||||
return (
|
||||
<div className="flex flex-col gap-2">
|
||||
<div className="w-20 aspect-video bg-muted rounded-md relative flex flex-col items-center justify-center">
|
||||
<div className="w-20 h-16 aspect-video bg-muted rounded-md relative flex flex-col items-center justify-center">
|
||||
{contentType ? (
|
||||
contentType.startsWith('image') ? (
|
||||
// NOTE: it is recommended to use next/image for images
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue