style(center): add tailwind calssifier presets to justify figure div to horizontally center and force figure property to div

This commit is contained in:
Anda Toshiki 2024-05-09 18:22:18 -07:00
parent 0763b6b4ec
commit bc4d96b3c2

View File

@ -45,12 +45,12 @@ export default Vue.extend({
loading="lazy" loading="lazy"
draggable="false" draggable="false"
fit="cover" fit="cover"
class="object-cover w-full rounded-md" class="object-cover w-full rounded-md flex justify-center mx-auto"
:class="[imageClass, border && 'border border-black/10 dark:border-white/10']" :class="[imageClass, border && 'border border-black/10 dark:border-white/10']"
:data-zoomable="zoomable" :data-zoomable="zoomable"
/> />
<figcaption v-if="caption" class="text-center"> <figcaption v-if="caption" class="text-center justify-center mx-auto">
{{ caption }} {{ caption }}
</figcaption> </figcaption>
</figure> </figure>