Switch default relay icon fallback
This commit is contained in:
parent
31890dfe90
commit
e79c97d73f
2 changed files with 4 additions and 4 deletions
|
|
@ -24,5 +24,5 @@
|
||||||
onclick={onClick}
|
onclick={onClick}
|
||||||
title={showTooltip ? $display : ""}
|
title={showTooltip ? $display : ""}
|
||||||
notification={$notifications.has(path)}>
|
notification={$notifications.has(path)}>
|
||||||
<RelayIcon {url} size={10} class="rounded-full" />
|
<RelayIcon {url} size={10} />
|
||||||
</PrimaryNavItem>
|
</PrimaryNavItem>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import RemoteControllerMinimalistic from "@assets/icons/remote-controller-minimalistic.svg?dataurl"
|
import Server from "@assets/icons/server.svg?dataurl"
|
||||||
import ImageIcon from "@lib/components/ImageIcon.svelte"
|
import ImageIcon from "@lib/components/ImageIcon.svelte"
|
||||||
import {relays} from "@app/core"
|
import {relays} from "@app/core"
|
||||||
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if $relay?.icon}
|
{#if $relay?.icon}
|
||||||
<ImageIcon {size} alt="" src={$relay?.icon} class={props.class} />
|
<ImageIcon {size} alt="" src={$relay?.icon} class="rounded-full {props.class}" />
|
||||||
{:else}
|
{:else}
|
||||||
<ImageIcon size={size - 2} alt="" src={RemoteControllerMinimalistic} class={props.class} />
|
<ImageIcon size={size - 2} alt="" src={Server} class={props.class} />
|
||||||
{/if}
|
{/if}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue