Improved actor editing units.

This commit is contained in:
2024-10-30 02:25:19 +01:00
parent 2293e10af7
commit 855a698eae
3 changed files with 262 additions and 127 deletions

View File

@@ -66,7 +66,16 @@
</div>
</div>
<span class="name">{{ actor.name }}</span>
<span class="label">
<span class="name ellipsis">{{ actor.name }}</span>
<img
v-if="actor.entity"
v-tooltip="actor.entity.name"
:src="`/logos/${actor.entity.slug}/favicon_dark.png`"
class="favicon"
>
</span>
</div>
</template>
@@ -119,9 +128,11 @@ const favorited = ref(props.actor.stashes.some((actorStash) => actorStash.id ===
}
}
.name {
.label {
display: flex;
justify-content: space-between;
align-items: center;
flex-shrink: 0;
padding: .35rem .5rem;
font-weight: bold;
font-size: .9rem;
white-space: nowrap;
@@ -130,6 +141,15 @@ const favorited = ref(props.actor.stashes.some((actorStash) => actorStash.id ===
user-select: all;
}
.name {
padding: .35rem .25rem .35rem .5rem;
}
.favicon {
height: 1rem;
padding: .35rem .5rem .35rem .25rem;
}
.avatar-container {
position: relative;
flex-grow: 1;