Skip to content

Commit

Permalink
fix: removes empty containers (#3511)
Browse files Browse the repository at this point in the history
  • Loading branch information
amir20 authored Jan 6, 2025
1 parent 151a3ef commit a1a9031
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion assets/components/ContainerViewer/ContainerTitle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@
{{ container.hostLabel }}
</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">
{{ container.name }} <carbon:caret-down />
</button>

<ul popover id="popover-container-list" class="dropdown menu rounded-box bg-base-100 tethered shadow-sm">
<li v-for="other in otherContainers">
<router-link :to="{ name: '/container/[id]', params: { id: other.id } }">
Expand Down
8 changes: 6 additions & 2 deletions assets/components/HostMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,12 @@
active-class="menu-active"
@click.alt.stop.prevent="pinnedStore.pinContainer(item)"
: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">
{{ item.name }}
</div>
Expand Down Expand Up @@ -215,7 +219,7 @@ const toggleShowAllContainers = () => (showAllContainers.value = !showAllContain
}
li.exited {
@apply opacity-50;
@apply opacity-75;
}
li.deleted {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified e2e/visual.spec.ts-snapshots/dark-homepage-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified e2e/visual.spec.ts-snapshots/default-homepage-1-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a1a9031

Please sign in to comment.