Skip to content
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

span bar row size fix #599

Merged
merged 1 commit into from
Jul 24, 2020
Merged

Conversation

vankop
Copy link
Contributor

@vankop vankop commented Jul 17, 2020

Which problem is this PR solving?

resolves #589

Short description of the changes

bug 👇 (black inner bar is custom critical path info, it does not affect a bug)
ezgif com-optimize (1)

Steps to reproduce:

  • use chrome 84
  • hover on SpanTreeOffset element, move cursor

What happens:
Not sure why but pseudo element :before increases parent's height on :hover, so here after rendering jaeger thinks that element height changed and fall into recomputing y positions, this happens on each span hover so span height is growing infinitely

I fixed size of indentGuide, this actually improves perf a little bit (no layout happens)

(cherry picked from commit 3fe952ab8c829072c4e6cd314bfd656c1d1ebfe5)
Signed-off-by: Ivan Kopeykin <ikopeykin@ozon.ru>
@codecov
Copy link

codecov bot commented Jul 17, 2020

Codecov Report

Merging #599 into master will increase coverage by 0.05%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #599      +/-   ##
==========================================
+ Coverage   93.52%   93.58%   +0.05%     
==========================================
  Files         217      217              
  Lines        5296     5296              
  Branches     1362     1362              
==========================================
+ Hits         4953     4956       +3     
+ Misses        302      299       -3     
  Partials       41       41              
Impacted Files Coverage Δ
...eViewer/TimelineHeaderRow/TimelineViewingLayer.tsx 93.22% <0.00%> (+5.08%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e4bf749...09d763f. Read the comment docs.

@everett980
Copy link
Collaborator

@vankop Can you please attach a gif of hovering over the indent guidelines with your changes?

Copy link
Collaborator

@everett980 everett980 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor clean up suggestions

content: '';
padding-left: 3px;
background-color: darkgrey;
background-color: transparent;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe a psuedoelement without content is not generated at all.

Please remove this :before entirely if it is not necessary.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

padding is a part of element size

this is needed to show tiny lines (lines when :not(:hover))

/* The size of the indentGuide is based off of the iconWrapper */
padding-right: calc(0.5rem + 11px);
border-left: 0px;
border-left: 3px solid darkgrey;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can get away with just border-color: darkgrey to avoid reproducing the other two characteristics (3px and solid)

Copy link
Collaborator

@everett980 everett980 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can finally reproduce the issue on master and this seems to have fixed it, ✅

Thanks for figuring out the issue!

@everett980 everett980 merged commit f3f7c90 into jaegertracing:master Jul 24, 2020
@vankop vankop deleted the fix-trace-view-css branch July 24, 2020 21:21
@Stono Stono mentioned this pull request Aug 26, 2020
vvvprabhakar pushed a commit to vvvprabhakar/jaeger-ui that referenced this pull request Jul 4, 2021
(cherry picked from commit 3fe952ab8c829072c4e6cd314bfd656c1d1ebfe5)
Signed-off-by: Ivan Kopeykin <ikopeykin@ozon.ru>
Signed-off-by: vvvprabhakar <vvvprabhakar@gmail.com>
vvvprabhakar pushed a commit to vvvprabhakar/jaeger-ui that referenced this pull request Jul 4, 2021
(cherry picked from commit 3fe952ab8c829072c4e6cd314bfd656c1d1ebfe5)
Signed-off-by: Ivan Kopeykin <ikopeykin@ozon.ru>
Signed-off-by: vvvprabhakar <vvvprabhakar@gmail.com>
vvvprabhakar pushed a commit to vvvprabhakar/jaeger-ui that referenced this pull request Jul 5, 2021
(cherry picked from commit 3fe952ab8c829072c4e6cd314bfd656c1d1ebfe5)
Signed-off-by: Ivan Kopeykin <ikopeykin@ozon.ru>
Signed-off-by: vvvprabhakar <vvvprabhakar@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Individual spans in trace view grow in size on hover in Chromium
2 participants