Commit fe191ff8 authored by Tim Zallmann's avatar Tim Zallmann

Merge branch '4330-show-item-count-in-tooltip' into 'master'

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

Closes #4330

See merge request gitlab-org/gitlab-ee!3794
parents 0a395a08 373d94f0
......@@ -104,8 +104,8 @@ class GeoNodeStatus {
graphItems.forEach((item) => {
$itemEl.find(item.itemSel)
.toggleClass('has-value has-tooltip', !!item.itemCount)
.attr('data-original-title', `${item.itemTooltip}: ${item.itemPercent}%`)
.text(item.itemCount || '')
.attr('data-original-title', `${item.itemTooltip}: ${item.itemCount}`)
.text(`${item.itemPercent}%` || '')
.css('width', `${item.itemPercent}%`);
});
}
......
......@@ -11,12 +11,14 @@
.status-neutral,
.status-red, {
height: 100%;
font-size: $tooltip-font-size;
font-weight: normal;
color: $white-light;
line-height: 20px;
&.has-value {
padding: 0 10px;
min-width: 25px;
padding: 0 5px;
}
&: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