show image comment as title in embeds

This commit is contained in:
dakkar 2024-10-10 13:12:46 +01:00
parent e87b1d2b11
commit 7628fe9c46

View file

@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<template> <template>
<div :class="[hide ? $style.hidden : $style.visible]" @click="onclick"> <div :class="[hide ? $style.hidden : $style.visible]" @click="onclick">
<a <a
:title="image.name" :title="image.comment || image.name"
:class="$style.imageContainer" :class="$style.imageContainer"
:href="href ?? image.url" :href="href ?? image.url"
target="_blank" target="_blank"