mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-13 13:37:31 -07:00
feat: show snippet of alt text when hovering alt button
This commit is contained in:
parent
6ddb96a392
commit
c44f885671
1 changed files with 6 additions and 1 deletions
|
@ -61,7 +61,12 @@
|
|||
<div class="buttons">
|
||||
<button
|
||||
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"
|
||||
@click.stop="captionPopup"
|
||||
>
|
||||
|
|
Loading…
Reference in a new issue