mirror of https://github.com/statping/statping
[statping-ui] : generateTooltipPosition refactor
parent
22edf1dd6d
commit
6274c66aa5
|
@ -99,7 +99,7 @@ export const generateTooltipPosition = (...args) => {
|
||||||
|
|
||||||
if (place === "left" || place === "right") {
|
if (place === "left" || place === "right") {
|
||||||
return {
|
return {
|
||||||
top: top,
|
top,
|
||||||
left: place === "left" ? left + offset : left - offset,
|
left: place === "left" ? left + offset : left - offset,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue