-
Notifications
You must be signed in to change notification settings - Fork 11.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TraceViewer: Fix show log marker in spanbar #30742
Conversation
packages/jaeger-ui-components/src/TraceTimelineViewer/ReferencesButton.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -161,7 +161,7 @@ function SpanBar(props: TInnerProps) { | |||
<div | |||
className={cx(styles.wrapper, className)} | |||
onClick={onClick} | |||
onMouseOut={setShortLabel} | |||
onMouseLeave={setShortLabel} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of curiosity why this had to be changed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had a problem with the tooltip not showing. And after changing that to onMouseLeave it showed up.
From w3schools
Tip: The onmouseleave event is similar to the onmouseout event. The only difference is that the onmouseleave event does not bubble (does not propagate up the document hierarchy).
18a7abf
to
121ab38
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work, looks great now.
121ab38
to
21c4277
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The theme variable choice look strange
cursor: pointer; | ||
height: 60%; | ||
min-width: 1px; | ||
position: absolute; | ||
top: 20%; | ||
&:hover { | ||
background-color: #000; | ||
background-color: ${theme.colors.textSemiWeak}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why using text color for a background?
@@ -65,14 +65,14 @@ const getStyles = createStyle(() => { | |||
`, | |||
logMarker: css` | |||
label: logMarker; | |||
background-color: rgba(0, 0, 0, 0.5); | |||
background-color: ${theme.colors.text}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks wrong , use bg1 or bg2 or bg3 for backgrounds
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or are these text-like elements?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not really. I just needed a color that is the reverse of bgcolor. so dark in light theme and light in dark theme.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you show what elements in the UI is the logMarker? maybe border2 can work as an alternative
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
21c4277
to
fe20c23
Compare
Fixes #27885