fix(webui): url type display in UpObject
ci/woodpecker/push/woodpecker Pipeline failed Details

refactor/sveltekit
Tomáš Mládek 2023-12-29 11:18:41 +01:00
parent 0690aef307
commit 7bed050cd0
1 changed files with 16 additions and 9 deletions

View File

@ -174,15 +174,17 @@
<HashBadge {address} />
<div class="separator" />
<div class="label" class:resolving title={displayLabel}>
{#if banner && hasFile}
<UpObjectLabel label={displayLabel} backpath={resolvedBackpath} />
{:else if link}
<UpLink to={{ entity: address }}>
<div class="label-inner">
{#if banner && hasFile}
<UpObjectLabel label={displayLabel} backpath={resolvedBackpath} />
</UpLink>
{:else}
<UpObjectLabel label={displayLabel} backpath={resolvedBackpath} />
{/if}
{:else if link}
<UpLink to={{ entity: address }}>
<UpObjectLabel label={displayLabel} backpath={resolvedBackpath} />
</UpLink>
{:else}
<UpObjectLabel label={displayLabel} backpath={resolvedBackpath} />
{/if}
</div>
<div class="type">
{$entityInfo?.t}
{#if $entityInfo?.t === "Url" || $entityInfo?.t === "Attribute"}
@ -274,8 +276,13 @@
.label {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 0.25em;
}
.label-inner {
max-width: 100%;
margin-right: 0.25em;
}
&.banner .label {