Commit 373d94f0 authored by Kushal Pandya's avatar Kushal Pandya Committed by Tim Zallmann

Geo: Show sync percent on bar graph and count within tooltips

parent 0a395a08
...@@ -104,8 +104,8 @@ class GeoNodeStatus { ...@@ -104,8 +104,8 @@ class GeoNodeStatus {
graphItems.forEach((item) => { graphItems.forEach((item) => {
$itemEl.find(item.itemSel) $itemEl.find(item.itemSel)
.toggleClass('has-value has-tooltip', !!item.itemCount) .toggleClass('has-value has-tooltip', !!item.itemCount)
.attr('data-original-title', `${item.itemTooltip}: ${item.itemPercent}%`) .attr('data-original-title', `${item.itemTooltip}: ${item.itemCount}`)
.text(item.itemCount || '') .text(`${item.itemPercent}%` || '')
.css('width', `${item.itemPercent}%`); .css('width', `${item.itemPercent}%`);
}); });
} }
......
...@@ -11,12 +11,14 @@ ...@@ -11,12 +11,14 @@
.status-neutral, .status-neutral,
.status-red, { .status-red, {
height: 100%; height: 100%;
font-size: $tooltip-font-size;
font-weight: normal; font-weight: normal;
color: $white-light; color: $white-light;
line-height: 20px; line-height: 20px;
&.has-value { &.has-value {
padding: 0 10px; min-width: 25px;
padding: 0 5px;
} }
&:hover { &:hover {
......
---
title: 'Geo: Show sync percent on bar graph and count within tooltips'
merge_request: 3794
author:
type: changed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment