docs: update aspect-ratio example (#795)

Added 'w-full h-full' to <img> in example.
This commit is contained in:
Alex 2024-10-08 07:41:00 +02:00 committed by GitHub
parent ec350df9d4
commit 235ec8a691
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,7 +46,7 @@ import { AspectRatio } from '@/components/ui/aspect-ratio'
<template> <template>
<div class="w-[450px]"> <div class="w-[450px]">
<AspectRatio :ratio="16 / 9"> <AspectRatio :ratio="16 / 9">
<img src="..." alt="Image" class="rounded-md object-cover"> <img src="..." alt="Image" class="rounded-md object-cover w-full h-full">
</AspectRatio> </AspectRatio>
</div> </div>
</template> </template>