forked from FoundKeyGang/FoundKey
client: default instance ticker name to instance's domain name
Changelog: Fixed
This commit is contained in:
parent
2c24f8a9ef
commit
f4ee76d017
3 changed files with 5 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<div v-tooltip="instance.softwareName + ' ' + instance.softwareVersion" class="hpaizdrt" :style="bg">
|
||||
<img v-if="instance.faviconUrl" class="icon" :src="instance.faviconUrl"/>
|
||||
<span class="name">{{ instance.name }}</span>
|
||||
<span class="name">{{ instance.name ?? host }}</span>
|
||||
<span v-if="instance.softwareName" class="software">{{ instance.softwareName }}</span>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -10,6 +10,8 @@
|
|||
import { instanceName, version, software } from '@/config';
|
||||
|
||||
const props = defineProps<{
|
||||
// null signifies localhost
|
||||
host: string | null;
|
||||
instance?: {
|
||||
faviconUrl?: string;
|
||||
name: string;
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="username"><MkAcct :user="appearNote.user"/></div>
|
||||
<MkInstanceTicker v-if="showTicker" class="ticker" :instance="appearNote.user.instance"/>
|
||||
<MkInstanceTicker v-if="showTicker" class="ticker" :host="appearNote.user.host" :instance="appearNote.user.instance"/>
|
||||
</div>
|
||||
</header>
|
||||
<div class="main">
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
<MkAvatar class="avatar" :user="appearNote.user"/>
|
||||
<div class="main">
|
||||
<XNoteHeader class="header" :note="appearNote" :mini="true"/>
|
||||
<MkInstanceTicker v-if="showTicker" class="ticker" :instance="appearNote.user.instance"/>
|
||||
<MkInstanceTicker v-if="showTicker" class="ticker" :host="appearNote.user.host" :instance="appearNote.user.instance"/>
|
||||
<div class="body">
|
||||
<p v-if="appearNote.cw != null" class="cw">
|
||||
<Mfm v-if="appearNote.cw != ''" class="text" :text="appearNote.cw" :author="appearNote.user" :i="$i" :custom-emojis="appearNote.emojis"/>
|
||||
|
|
Loading…
Reference in a new issue