mirror of
https://github.com/ArthurDanjou/artsite.git
synced 2026-01-19 02:22:05 +01:00
Update toc button behavior to use hover mode and adjust styles for better UI consistency Change text-decoration style for headings in prose to ensure no underline is applied
13 lines
420 B
Vue
13 lines
420 B
Vue
<script lang="ts" setup>
|
|
defineProps<{ src: string, caption?: string, rounded?: boolean }>()
|
|
</script>
|
|
|
|
<template>
|
|
<div class="flex flex-col justify-center items-center prose-none my-8">
|
|
<img :src="src" :alt="caption" class="w-full h-auto m-0 prose-none" :class="{ 'rounded-lg': rounded }">
|
|
<p class="mt-2 text-sm text-gray-500 dark:text-gray-300 prose-none">
|
|
{{ caption }}
|
|
</p>
|
|
</div>
|
|
</template>
|