|
102 | 102 | ></cv-skeleton-text> |
103 | 103 | </template> |
104 | 104 | <template v-else> |
105 | | - <template v-if="!loading.listNodes && nodeStatus.fqdn"> |
106 | | - <div class="mg-bottom-lg long-text-row"> |
107 | | - <span class="label">{{ $t("node_detail.fqdn") }}</span> |
108 | | - <span class="long-text">{{ nodeStatus.fqdn }}</span> |
109 | | - </div> |
110 | | - </template> |
111 | 105 | <div class="mg-bottom-lg"> |
112 | 106 | <span class="label">{{ $t("node_detail.node_id") }}</span> |
113 | 107 | <span>{{ |
114 | 108 | loading.listNodes ? "-" : nodeStatus.node_id |
115 | 109 | }}</span> |
116 | 110 | </div> |
| 111 | + <template v-if="!loading.listNodes && nodeStatus.fqdn"> |
| 112 | + <div class="mg-bottom-lg long-text-row"> |
| 113 | + <span class="label">{{ $t("node_detail.fqdn") }}</span> |
| 114 | + <span class="long-text">{{ nodeStatus.fqdn }}</span> |
| 115 | + </div> |
| 116 | + </template> |
117 | 117 | <template v-if="!loading.listNodes && nodeStatus.app_count"> |
118 | 118 | <div class="mg-bottom-lg"> |
119 | 119 | <span class="label">{{ |
|
270 | 270 | > |
271 | 271 | <cv-tile :light="true"> |
272 | 272 | <h4 class="mg-bottom-lg">{{ $t("node_detail.cpu") }}</h4> |
273 | | - <div class="mg-bottom-lg"> |
274 | | - {{ $t("node_detail.usage") }} |
| 273 | + <div class="mg-bottom-sm"> |
| 274 | + <span class="label" |
| 275 | + >{{ $t("node_detail.average_cpu_usage") }} |
| 276 | + <cv-interactive-tooltip |
| 277 | + alignment="start" |
| 278 | + direction="bottom" |
| 279 | + class="info" |
| 280 | + > |
| 281 | + <template slot="trigger"> |
| 282 | + <Information16 /> |
| 283 | + </template> |
| 284 | + <template slot="content"> |
| 285 | + {{ $t("node_detail.average_cpu_usage_tooltip") }} |
| 286 | + </template> |
| 287 | + </cv-interactive-tooltip> |
| 288 | + </span> |
275 | 289 | {{ loading.listNodes ? 0 : nodeStatus.cpu.usage }}% |
276 | 290 | </div> |
277 | 291 | <NsProgressBar |
|
355 | 369 | </cv-tile> |
356 | 370 | <cv-tile :light="true"> |
357 | 371 | <h4 class="mg-bottom-lg">{{ $t("node_detail.memory") }}</h4> |
358 | | - <div class="mg-bottom-lg"> |
359 | | - {{ $t("node_detail.usage") }} |
| 372 | + <div class="mg-bottom-sm"> |
| 373 | + <span class="label">{{ $t("node_detail.usage") }}</span> |
360 | 374 | {{ loading.listNodes ? 0 : nodeStatus.memory.usage }}% |
361 | 375 | </div> |
362 | 376 | <NsProgressBar |
|
389 | 403 | </cv-tile> |
390 | 404 | <cv-tile :light="true"> |
391 | 405 | <h4 class="mg-bottom-lg">{{ $t("node_detail.swap") }}</h4> |
392 | | - <div class="mg-bottom-lg"> |
393 | | - {{ $t("node_detail.usage") }} |
| 406 | + <div class="mg-bottom-sm"> |
| 407 | + <span class="label">{{ $t("node_detail.usage") }}</span> |
394 | 408 | {{ loading.listNodes ? 0 : nodeStatus.swap.usage }}% |
395 | 409 | </div> |
396 | 410 | <NsProgressBar |
@@ -968,7 +982,6 @@ export default { |
968 | 982 | display: flex; |
969 | 983 | align-items: baseline; |
970 | 984 | flex-wrap: wrap; /* allows wrapping only if really needed */ |
971 | | - gap: 0.5rem; |
972 | 985 | } |
973 | 986 |
|
974 | 987 | .long-text { |
|
0 commit comments