1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-27 15:41:45 +01:00

fix: adds ellipses for titles that have swarm id (#2368)

This commit is contained in:
Amir Raminfar
2023-08-25 13:33:03 -07:00
committed by GitHub
parent be5e496380
commit 512b181b48

View File

@@ -4,7 +4,7 @@
<container-health :health="container.health" v-if="container.health"></container-health>
<div class="name">
<span>{{ container.name }}</span
><span v-if="container.isSwarm" class="swarm-id">{{ container.swarmId }}</span>
><span v-if="container.isSwarm" class="swarm-id is-ellipsis">{{ container.swarmId }}</span>
</div>
<tag class="is-hidden-mobile">{{ container.image.replace(/@sha.*/, "") }}</tag>
<span class="icon is-clickable" @click="togglePinnedContainer(container.storageKey)">
@@ -31,7 +31,7 @@ const pinned = computed(() => pinnedContainers.value.has(container.value.storage
.name {
display: inline-flex;
.swarm-id {
max-width: 0;
max-width: 1.5em;
display: inline-block;
overflow: hidden;
white-space: nowrap;