1
0
Fork 0
mirror of synced 2024-10-04 03:54:37 +13:00

Fix relationship cells not being readonly

This commit is contained in:
Andrew Kingston 2023-04-17 16:06:20 +01:00
parent e48e2ff7f0
commit 666762a2c2

View file

@ -216,13 +216,13 @@
{#if relationship.primaryDisplay} {#if relationship.primaryDisplay}
<div class="badge"> <div class="badge">
<span <span
on:click={focused on:click={editable
? () => showRelationship(relationship._id) ? () => showRelationship(relationship._id)
: null} : null}
> >
{relationship.primaryDisplay} {relationship.primaryDisplay}
</span> </span>
{#if focused} {#if editable}
<Icon <Icon
name="Close" name="Close"
size="XS" size="XS"
@ -233,7 +233,7 @@
</div> </div>
{/if} {/if}
{/each} {/each}
{#if focused} {#if editable}
<div class="add" on:click={open}> <div class="add" on:click={open}>
<Icon name="Add" size="S" /> <Icon name="Add" size="S" />
</div> </div>
@ -356,7 +356,7 @@
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.focused .values .badge span:hover { .editable .values .badge span:hover {
cursor: pointer; cursor: pointer;
text-decoration: underline; text-decoration: underline;
} }