Skip to content

Commit f2d5dd8

Browse files
committed
fixed web metrics tool tip display
1 parent c6f3f75 commit f2d5dd8

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

src/app/components/StateRoute/WebMetrics/WebMetrics.tsx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { useDispatch } from 'react-redux';
1010

1111
const radialGraph = (props) => {
1212
const dispatch = useDispatch();
13+
console.log('props', props);
1314
const state = {
1415
series: [props.series], // series appears to be the scale at which data is displayed based on the type of webMetrics measured.
1516
options: {
@@ -100,15 +101,9 @@ const radialGraph = (props) => {
100101
dispatch(setCurrentTabInApp('webmetrics')); // dispatch sent at initial page load allowing changing "immer's" draft.currentTabInApp to 'webmetrics' to facilitate render.
101102
}, []);
102103

103-
const optionsCursorTrueWithMargin: OptionsCursorTrueWithMargin = {
104-
followCursor: true,
105-
shiftX: 20,
106-
shiftY: 0,
107-
};
108-
109104
return (
110105
<div className='metric'>
111-
<ReactHover options={optionsCursorTrueWithMargin}>
106+
<ReactHover>
112107
<Trigger type='trigger'>
113108
<div id='chart' className='chart-container'>
114109
<Charts
@@ -121,7 +116,7 @@ const radialGraph = (props) => {
121116
</div>
122117
</Trigger>
123118
<Hover type='hover'>
124-
<div className='metric-tooltip' id='hover-box'>
119+
<div className='hover-box'>
125120
<p>
126121
<strong>{props.name}</strong>
127122
</p>

src/app/containers/ProvConContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ const ProvConContainer = (props: ProvConContainerProps): JSX.Element => {
129129
// Only return the node if it has at least one non-empty property
130130
return isEmptyObject(filteredNode) ? null : filteredNode;
131131
};
132+
132133
const filteredProviders = filterComponentProperties(contextProvidersOnly);
133-
console.log('filtered', filteredProviders);
134134

135135
const parseStringifiedValues = (obj) => {
136136
if (!obj || typeof obj !== 'object') return obj;

src/app/styles/layout/_stateContainer.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,13 @@
142142
align-items: center;
143143
}
144144

145-
#hover-box {
145+
.hover-box {
146146
max-width: 250px;
147147
background-color: #51565e;
148148
border-radius: 8px;
149149
color: white;
150+
padding: 2px 8px;
151+
line-height: 16px;
150152
}
151153

152154
/* Tree styling */

0 commit comments

Comments
 (0)