1👍
✅
You could fix that using the helper class align-center
:
<v-card elevation="3"
class="d-flex flex-column flex-sm-row justify-center pt-2 pb-2 align-center">
2👍
It’s because you’re using column
flex direction on small devices. Both justify-center
and align-center
works differently when using column direction.
justify-center
- Horizontal in
row direction
and Vertical oncolumn direction
.
align-center
- Vertical in
row direction
and Horizontal incolumn direction
.
Conclusion
Just add align-center
to the v-card element and you’re good to go.
<v-card elevation="3" class="d-flex flex-column flex-sm-row justify-center align-center pt-2 pb-2">
Source:stackexchange.com