π A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!
Vue awesomedashboarddockerhomelabhomepagemitnodejsorganizationproductivitypwaself-hostedstartpagevue
XKCD: Use tooltip for alt text
Matthias Bilgerd4528a1afe44
diff --git a/src/components/Widgets/XkcdComic.vue b/src/components/Widgets/XkcdComic.vueindex f42f6eae..2aed03cf 100644--- a/src/components/Widgets/XkcdComic.vue+++ b/src/components/Widgets/XkcdComic.vue@@ -1,8 +1,8 @@<template>-<div class="xkcd-wrapper">+<div class="xkcd-wrapper" v-tooltip="toolTip(alt)"><h3 class="xkcd-title">{{ title }}</h3><a :href="`https://xkcd.com/${comicNum}/`">- <img :src="image" :alt="alt" class="xkcd-comic" />+ <img :src="image" :alt="alt" class="xkcd-comic"/></a></div></template>@@ -59,6 +59,12 @@ export default {this.alt = data.alt;this.comicNum = data.num;},+ toolTip(alt) {+ const content = alt;+ return {+ content, html: false, trigger: 'hover focus', delay: 250, classes: 'xkcd-alt-tt',+ };+ },},};</script>@@ -80,3 +86,8 @@ export default {}</style>+<style lang="scss">+.xkcd-alt-tt {+ min-width: 20rem;+}+</style>