I cannot seem to get this working in Vuetify. I have a default Nuxt JS project with Vuetify installed. But I do think this problem is framework agnostic. I cannot seem to get it to show as I want to in the image bellow.
I want simple to have the div be a bit larger then the image. I have added some padding using p-5. But when I for instance change the w-auto to `w-100' then the div tries to take on the full width of its parent.
<div class="d-flex flex-column align-center w-100">
<div class="background-primary w-auto p-5 elevation-10 rounded-md">
<v-img
:src="paintingUrl"
alt="Painting"
aspect-ratio="1.5"
max-height="30rem"
contain
/>
</div>
</div>
