style: set aspect ratio to 16:9 for the asset containers in the media panel
This commit is contained in:
@ -134,7 +134,7 @@ export function MediaPanel() {
|
|||||||
<img
|
<img
|
||||||
src={item.url}
|
src={item.url}
|
||||||
alt={item.name}
|
alt={item.name}
|
||||||
className="w-full h-full object-cover rounded cursor-grab active:cursor-grabbing"
|
className="w-full h-full object-contain rounded cursor-grab active:cursor-grabbing"
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
{...baseDragProps}
|
{...baseDragProps}
|
||||||
/>
|
/>
|
||||||
@ -298,7 +298,7 @@ export function MediaPanel() {
|
|||||||
variant="outline"
|
variant="outline"
|
||||||
className="flex flex-col gap-2 p-2 h-auto w-full relative"
|
className="flex flex-col gap-2 p-2 h-auto w-full relative"
|
||||||
>
|
>
|
||||||
<AspectRatio ratio={item.aspectRatio}>
|
<AspectRatio ratio={16 / 9} className="bg-accent">
|
||||||
{renderPreview(item)}
|
{renderPreview(item)}
|
||||||
</AspectRatio>
|
</AspectRatio>
|
||||||
<span
|
<span
|
||||||
|
Reference in New Issue
Block a user