mirror of https://github.com/status-im/consul.git
ui: Tooltip Bugs (#8562)
* Fix tooltip offset in Discovery Chain for Firefox Browser * Add z-index to ember-tooltip to over over the search/sort in AppView
This commit is contained in:
parent
dfcd9c00cf
commit
ad9f118d14
|
@ -135,7 +135,7 @@
|
|||
{{/if}}
|
||||
{{/each}}
|
||||
</svg>
|
||||
<div class={{concat 'tooltip' (if activeTooltip ' active' '')}} style={{{ concat 'position: absolute;top:' y 'px;left:' x 'px;'}}}>
|
||||
<div class={{concat 'tooltip' (if activeTooltip ' active' '')}} style={{{ concat 'top:' y 'px;left:' x 'px;'}}}>
|
||||
<span role="tooltip">{{round tooltip decimals=2}}%</span>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
|
|
@ -177,8 +177,8 @@ export default Component.extend({
|
|||
actions: {
|
||||
showSplit: function(e) {
|
||||
this.setProperties({
|
||||
x: e.offsetX,
|
||||
y: e.offsetY - 5,
|
||||
x: e.clientX,
|
||||
y: e.clientY - 3,
|
||||
tooltip: e.target.dataset.percentage,
|
||||
activeTooltip: true,
|
||||
});
|
||||
|
|
|
@ -55,4 +55,5 @@
|
|||
.ember-tooltip {
|
||||
padding: 12px;
|
||||
max-width: 192px;
|
||||
z-index: 4;
|
||||
}
|
||||
|
|
|
@ -25,6 +25,10 @@
|
|||
%discovery-chain [id*=':']:not(path):hover {
|
||||
@extend %chain-node-active;
|
||||
}
|
||||
%discovery-chain .tooltip {
|
||||
position: fixed;
|
||||
z-index: 5;
|
||||
}
|
||||
%discovery-chain .tooltip.active > [role='tooltip'],
|
||||
%discovery-chain .tooltip.active > [role='tooltip']::after {
|
||||
@extend %blink-in-fade-out-active;
|
||||
|
|
Loading…
Reference in New Issue