diff --git a/webui/src/lib/components/display/UpObject.svelte b/webui/src/lib/components/display/UpObject.svelte index c501d2f..35f5cac 100644 --- a/webui/src/lib/components/display/UpObject.svelte +++ b/webui/src/lib/components/display/UpObject.svelte @@ -191,24 +191,17 @@ {/if}
- -
- {#if banner && hasFile} - - {:else if link} - - - - {:else} - - {/if} -
-
+ {#if banner && !link} + + + + {:else if link} + + + + {:else} + + {/if} {#if $entity?.get(ATTR_KEY) && !$entity?.get(ATTR_KEY)?.toString()?.startsWith('TYPE_')}
{$entity.get(ATTR_KEY)}
{/if} @@ -314,10 +307,17 @@ } .label { + flex-grow: 1; + min-width: 0; + display: flex; flex-wrap: wrap; align-items: baseline; margin-left: 0.25em; + + :global(a) { + text-decoration: none; + } } .label-inner { @@ -351,8 +351,7 @@ } &:not(.banner) .key { - flex-grow: 1; - text-align: right; + display: inline-block; } &.show-type .secondary, @@ -384,15 +383,6 @@ } } - .label { - flex-grow: 1; - min-width: 0; - - :global(a) { - text-decoration: none; - } - } - .icon { margin: 0 0.1em; } @@ -402,6 +392,7 @@ } .link-button { + padding: 0.25em; opacity: 0.66; transition: opacity 0.2s, diff --git a/webui/src/lib/components/display/UpObjectLabel.svelte b/webui/src/lib/components/display/UpObjectLabel.svelte index 47bb547..089d660 100644 --- a/webui/src/lib/components/display/UpObjectLabel.svelte +++ b/webui/src/lib/components/display/UpObjectLabel.svelte @@ -24,7 +24,8 @@