Skip to content

Commit

Permalink
fix: Updates to sidebar on mobile to align closer to desktop (#2562)
Browse files Browse the repository at this point in the history
  • Loading branch information
ab623 authored Dec 5, 2023
1 parent f240b70 commit 24f298b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions assets/components/common/MobileMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</div>

<transition name="fade">
<div v-show="show">
<div v-show="show" class="h-[calc(100vh-60px)] overflow-auto">
<div class="mt-4 flex items-center justify-center gap-2">
<dropdown-menu
v-model="sessionHost"
Expand All @@ -39,7 +39,7 @@

<ul class="menu">
<li class="menu-title">{{ $t("label.containers") }}</li>
<li v-for="item in sortedContainers" :key="item.id">
<li v-for="item in sortedContainers" :key="item.id" :class="item.state">
<router-link
:to="{ name: 'container-id', params: { id: item.id } }"
active-class="active-primary"
Expand Down Expand Up @@ -85,6 +85,10 @@ const sortedContainers = computed(() =>
const hosts = computed(() => config.hosts.map(({ id, name }) => ({ value: id, label: name })));
</script>
<style scoped lang="postcss">
li.exited {
@apply opacity-50;
}
.fade-enter-active,
.fade-leave-active {
@apply transition-opacity;
Expand Down

0 comments on commit 24f298b

Please sign in to comment.