style: swap instance icons in the ticker and info page
This commit is contained in:
parent
66fa263ffd
commit
6fc6f80fef
2 changed files with 6 additions and 6 deletions
|
@ -78,8 +78,8 @@ const bg = {
|
|||
|
||||
function getInstanceIcon(instance): string {
|
||||
return (
|
||||
getProxiedImageUrlNullable(instance.iconUrl, "preview") ??
|
||||
getProxiedImageUrlNullable(instance.faviconUrl, "preview") ??
|
||||
getProxiedImageUrlNullable(instance.iconUrl, "preview") ??
|
||||
"/client-assets/dummy.png"
|
||||
);
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
<swiper-slide>
|
||||
<div class="_formRoot">
|
||||
<div class="fnfelxur">
|
||||
<img :src="faviconUrl" alt="" class="icon" />
|
||||
<img :src="iconUrl" alt="" class="icon" />
|
||||
<span class="name">{{
|
||||
instance.name || `(${i18n.ts.unknown})`
|
||||
}}</span>
|
||||
|
@ -310,7 +310,7 @@ const instance = ref<AugmentedInstance | null>(null);
|
|||
const suspended = ref(false);
|
||||
const isBlocked = ref(false);
|
||||
const isSilenced = ref(false);
|
||||
const faviconUrl = ref<string | null>(null);
|
||||
const iconUrl = ref<string | null>(null);
|
||||
|
||||
const usersPagination = {
|
||||
endpoint: isAdmin ? ("admin/show-users" as const) : ("users" as const),
|
||||
|
@ -332,9 +332,9 @@ async function fetch() {
|
|||
suspended.value = instance.value.isSuspended;
|
||||
isBlocked.value = instance.value.isBlocked;
|
||||
isSilenced.value = instance.value.isSilenced;
|
||||
faviconUrl.value =
|
||||
getProxiedImageUrlNullable(instance.value.faviconUrl, "preview") ??
|
||||
getProxiedImageUrlNullable(instance.value.iconUrl, "preview");
|
||||
iconUrl.value =
|
||||
getProxiedImageUrlNullable(instance.value.iconUrl, "preview") ??
|
||||
getProxiedImageUrlNullable(instance.value.faviconUrl, "preview");
|
||||
}
|
||||
|
||||
async function toggleBlock() {
|
||||
|
|
Loading…
Reference in a new issue