1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-21 13:23:07 +01:00

fix: removes empty containers (#3511)

This commit is contained in:
Amir Raminfar
2025-01-06 13:40:29 -08:00
committed by GitHub
parent 151a3efb16
commit a1a9031cda
6 changed files with 9 additions and 3 deletions

View File

@@ -12,10 +12,12 @@
{{ container.hostLabel }} {{ container.hostLabel }}
</li> </li>
<li> <li>
<div class="wrapper" ref="wrapper"> <div v-if="otherContainers.length === 0" class="font-mono">{{ container.name }}</div>
<div class="wrapper" ref="wrapper" v-else>
<button popovertarget="popover-container-list" class="btn btn-xs md:btn-sm anchor font-mono"> <button popovertarget="popover-container-list" class="btn btn-xs md:btn-sm anchor font-mono">
{{ container.name }} <carbon:caret-down /> {{ container.name }} <carbon:caret-down />
</button> </button>
<ul popover id="popover-container-list" class="dropdown menu rounded-box bg-base-100 tethered shadow-sm"> <ul popover id="popover-container-list" class="dropdown menu rounded-box bg-base-100 tethered shadow-sm">
<li v-for="other in otherContainers"> <li v-for="other in otherContainers">
<router-link :to="{ name: '/container/[id]', params: { id: other.id } }"> <router-link :to="{ name: '/container/[id]', params: { id: other.id } }">

View File

@@ -80,8 +80,12 @@
active-class="menu-active" active-class="menu-active"
@click.alt.stop.prevent="pinnedStore.pinContainer(item)" @click.alt.stop.prevent="pinnedStore.pinContainer(item)"
:title="item.name" :title="item.name"
class="group auto-cols-[auto_max-content_max-content]" class="group auto-cols-[content_max_auto_max-content_max-content]"
> >
<div
class="status data-[state=exited]:status-error data-[state=running]:status-success"
:data-state="item.state"
></div>
<div class="truncate"> <div class="truncate">
{{ item.name }} {{ item.name }}
</div> </div>
@@ -215,7 +219,7 @@ const toggleShowAllContainers = () => (showAllContainers.value = !showAllContain
} }
li.exited { li.exited {
@apply opacity-50; @apply opacity-75;
} }
li.deleted { li.deleted {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 17 KiB