Update aspect-ratio.md

Added 'w-full h-full' to <img> in example.
This commit is contained in:
Alex 2024-10-03 22:39:33 +02:00 committed by GitHub
parent ec350df9d4
commit dc8367ac29
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>
<div class="w-[450px]">
<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>
</div>
</template>