Add tooltips to visibility icons (#9598)
This commit is contained in:
parent
f34fd4991f
commit
9727a03f05
|
@ -1,9 +1,14 @@
|
||||||
<template>
|
<template>
|
||||||
<span v-if="note.visibility !== 'public'" :class="$style.visibility">
|
<span v-if="note.visibility !== 'public'" :class="$style.visibility">
|
||||||
<i v-if="note.visibility === 'home'" class="ph-house ph-bold ph-lg"></i>
|
<i
|
||||||
|
v-if="note.visibility === 'home'"
|
||||||
|
class="ph-house ph-bold ph-lg"
|
||||||
|
v-tooltip="i18n.ts._visibility.home"
|
||||||
|
></i>
|
||||||
<i
|
<i
|
||||||
v-else-if="note.visibility === 'followers'"
|
v-else-if="note.visibility === 'followers'"
|
||||||
class="ph-lock-simple-open ph-bold ph-lg"
|
class="ph-lock-simple-open ph-bold ph-lg"
|
||||||
|
v-tooltip="i18n.ts._visibility.followers"
|
||||||
></i>
|
></i>
|
||||||
<i
|
<i
|
||||||
v-else-if="note.visibility === 'specified'"
|
v-else-if="note.visibility === 'specified'"
|
||||||
|
@ -12,7 +17,10 @@
|
||||||
></i>
|
></i>
|
||||||
</span>
|
</span>
|
||||||
<span v-if="note.localOnly" :class="$style.localOnly"
|
<span v-if="note.localOnly" :class="$style.localOnly"
|
||||||
><i class="ph-hand-fist ph-bold ph-lg"></i
|
><i
|
||||||
|
class="ph-hand-fist ph-bold ph-lg"
|
||||||
|
v-tooltip="i18n.ts._visibility.localOnly"
|
||||||
|
></i
|
||||||
></span>
|
></span>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -21,6 +29,7 @@ import { ref } from "vue";
|
||||||
import XDetails from "@/components/MkUsersTooltip.vue";
|
import XDetails from "@/components/MkUsersTooltip.vue";
|
||||||
import * as os from "@/os";
|
import * as os from "@/os";
|
||||||
import { useTooltip } from "@/scripts/use-tooltip";
|
import { useTooltip } from "@/scripts/use-tooltip";
|
||||||
|
import { i18n } from "@/i18n";
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
note: {
|
note: {
|
||||||
|
|
Loading…
Reference in New Issue