1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-24 06:28:42 +01:00

Adds tooltip to healthcheck. Fixes #2104 (#2110)

This commit is contained in:
Amir Raminfar
2023-04-06 09:50:44 -07:00
committed by GitHub
parent e7591f9a64
commit 63a0d544e4
3 changed files with 33 additions and 11 deletions

View File

@@ -1,6 +1,11 @@
<template>
<div class="columns is-marginless has-text-weight-bold is-family-monospace">
<span class="column is-ellipsis">
<span class="icon is-small health" :health="container.health" v-if="container.health" :title="container.health">
<cil:check-circle v-if="container.health == 'healthy'" />
<cil:x-circle v-else-if="container.health == 'unhealthy'" />
<cil:circle v-else />
</span>
{{ container.name }}
<span class="tag is-dark">{{ container.image.replace(/@sha.*/, "") }}</span>
</span>
@@ -14,4 +19,18 @@ import { type ComputedRef } from "vue";
const container = inject("container") as ComputedRef<Container>;
</script>
<style lang="scss" scoped></style>
<style lang="scss" scoped>
.icon {
vertical-align: middle;
}
.health {
&[health="unhealthy"] {
color: var(--red-color);
}
&[health="healthy"] {
color: var(--green-color);
}
}
</style>