mirror of
https://github.com/ArthurDanjou/artsite.git
synced 2026-01-29 09:57:40 +01:00
Refactor ProseImg component to remove unused 'label' prop and update alt text to use 'caption' instead
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
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
<script lang="ts" setup>
|
||||
defineProps<{ src: string, label: string, caption?: string, rounded?: boolean }>()
|
||||
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="label" class="w-full h-auto m-0 prose-none" :class="{ 'rounded-lg': rounded }">
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user