feat: show snippet of alt text when hovering alt button
This commit is contained in:
parent
18260e1a63
commit
a79bd2c555
@ -61,7 +61,12 @@
|
|||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
<button
|
<button
|
||||||
v-if="media.comment"
|
v-if="media.comment"
|
||||||
v-tooltip="i18n.ts.alt"
|
v-tooltip.noLabel="`${i18n.ts.alt}: ${
|
||||||
|
media.comment.length > 200 ?
|
||||||
|
media.comment.trim().slice(0, 200) + '...'
|
||||||
|
: media.comment.trim()
|
||||||
|
}`"
|
||||||
|
:aria-label="i18n.ts.alt"
|
||||||
class="_button"
|
class="_button"
|
||||||
@click.stop="captionPopup"
|
@click.stop="captionPopup"
|
||||||
>
|
>
|
||||||
|
Loading…
Reference in New Issue
Block a user