From 6435d62fb5cf879146d94e5aa553dcca9a917c26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Thu, 9 Nov 2023 14:13:52 +0100 Subject: [PATCH] Show avatar and alias in NodeId popover This also adjusts colors and font styling as per design. --- src/components/NodeId.svelte | 35 ++++++++++++++++++++++++++++++----- 1 file changed, 30 insertions(+), 5 deletions(-) diff --git a/src/components/NodeId.svelte b/src/components/NodeId.svelte index 4035b63b2..d55970e3f 100644 --- a/src/components/NodeId.svelte +++ b/src/components/NodeId.svelte @@ -21,14 +21,30 @@ gap: 0.25rem; height: 1rem; font-family: var(--font-family-monospace); - font-weight: var(--font-weight-bold); + font-weight: var(--font-weight-semibold); font-size: var(--font-size-small); - color: var(--color-fill-secondary); + color: var(--color-foreground-contrast); } .large { height: 1.25rem; gap: 0.5rem; } + .popover-avatar { + height: 1rem; + display: flex; + align-items: center; + gap: 0.5rem; + font-family: var(--font-family-monospace); + font-weight: var(--font-weight-semibold); + font-size: var(--font-size-small); + color: var(--color-foreground-contrast); + } + .popover-container { + display: flex; + align-items: center; + gap: 1rem; + color: white; + }
- - {formatNodeId(nodeId)} - +
+
+ + {#if alias} + {alias} + {/if} +
+ + + {formatNodeId(nodeId)} + +