mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-06 12:06:58 +00:00
honour "logo" in titlebar
I'm not completely sure this is a good idea…
This commit is contained in:
parent
bf80b3d07f
commit
4f26621f6e
1 changed files with 8 additions and 1 deletions
|
@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
<template>
|
||||
<div :class="$style.root">
|
||||
<div :class="$style.title">
|
||||
<img :src="instance.iconUrl || instance.faviconUrl || '/favicon.ico'" alt="" :class="$style.instanceIcon"/>
|
||||
<img :src="instance.sidebarLogoUrl || instance.iconUrl || instance.faviconUrl || '/favicon.ico'" alt="" :class="instance.sidebarLogoUrl ? $style.wideInstanceIcon : $style.instanceIcon"/>
|
||||
<span :class="$style.instanceTitle">{{ instance.name ?? host }}</span>
|
||||
</div>
|
||||
<div :class="$style.controls">
|
||||
|
@ -67,6 +67,13 @@ function goBack() {
|
|||
margin-right: 8px;
|
||||
}
|
||||
|
||||
.wideInstanceIcon {
|
||||
display: inline-block;
|
||||
min-width: 38px;
|
||||
max-width: 100%;
|
||||
max-height: var(--height);
|
||||
}
|
||||
|
||||
.instanceTitle {
|
||||
display: inline-block;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue