diff --git a/ui/src/components/header/ProjectMenu.vue b/ui/src/components/header/ProjectMenu.vue index dfe642183a2..7388f0c1c9c 100644 --- a/ui/src/components/header/ProjectMenu.vue +++ b/ui/src/components/header/ProjectMenu.vue @@ -20,9 +20,8 @@ - + @@ -71,6 +73,16 @@ export default { created () { this.fetchData() }, + computed: { + projectSelected () { + let projectIndex = 0 + if (this.$store.getters?.project?.id) { + projectIndex = this.projects.findIndex(project => project.id === this.$store.getters.project.id) + } + + return projectIndex + } + }, methods: { fetchData () { if (this.isDisabled()) { @@ -135,6 +147,6 @@ export default { position: absolute; top: 0; right: 1px; - margin-top: -3px; + margin-top: -5px; } diff --git a/ui/src/style/dark-mode.less b/ui/src/style/dark-mode.less index 623aeb1b9b6..1b338ea9ae6 100644 --- a/ui/src/style/dark-mode.less +++ b/ui/src/style/dark-mode.less @@ -283,7 +283,7 @@ & > tr:hover.ant-table-row-selected > td, & > tr.ant-table-row-hover:not(.ant-table-expanded-row):not(.ant-table-row-selected) > td, & > tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected) > td { - background-color: @table-body-hover-bgColor; + background-color: @table-body-hover-bgColor !important; } & > tr > th.ant-table-column-sort { @@ -551,7 +551,7 @@ &-option-active:not(.ant-select-item-option-disabled), &:hover:not(.ant-select-item-disabled), &-active:hover:not(.ant-select-item-disabled) { - background-color: @dropdown-hover-bgColor; + background-color: @dropdown-hover-bgColor !important; } } } @@ -714,7 +714,7 @@ &-item:not(.ant-dropdown-menu-item-selected):hover, &-submenu-title:not(.ant-dropdown-menu-item-selected):hover { - background-color: @dropdown-hover-bgColor; + background-color: @dropdown-hover-bgColor !important; } &-title-content > a, diff --git a/ui/src/views/dashboard/CapacityDashboard.vue b/ui/src/views/dashboard/CapacityDashboard.vue index c2c38e7ee3d..43c21202c15 100644 --- a/ui/src/views/dashboard/CapacityDashboard.vue +++ b/ui/src/views/dashboard/CapacityDashboard.vue @@ -21,9 +21,8 @@
zone.id === this.zoneSelected.id) + return zoneIndex + } + }, created () { this.fetchData() }, diff --git a/ui/src/views/dashboard/UsageDashboard.vue b/ui/src/views/dashboard/UsageDashboard.vue index ec435931096..677414221b8 100644 --- a/ui/src/views/dashboard/UsageDashboard.vue +++ b/ui/src/views/dashboard/UsageDashboard.vue @@ -252,7 +252,7 @@ export default {