mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-08-21 02:23:38 +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>
|
<template>
|
||||||
<div :class="$style.root">
|
<div :class="$style.root">
|
||||||
<div :class="$style.title">
|
<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>
|
<span :class="$style.instanceTitle">{{ instance.name ?? host }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div :class="$style.controls">
|
<div :class="$style.controls">
|
||||||
|
@ -67,6 +67,13 @@ function goBack() {
|
||||||
margin-right: 8px;
|
margin-right: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.wideInstanceIcon {
|
||||||
|
display: inline-block;
|
||||||
|
min-width: 38px;
|
||||||
|
max-width: 100%;
|
||||||
|
max-height: var(--height);
|
||||||
|
}
|
||||||
|
|
||||||
.instanceTitle {
|
.instanceTitle {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue