fix(lineage): Fix lineage entity drawer height UI bug #4707
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When the width of a screen is small or an entity has enough path crumbs so that the browse path in the entity profile nav bar is wide enough to push content in this nav bar onto a second line, this second line gets covered up by the
EntityDrawer
that pops out from the left.Since the
EntityDrawer
is an abolsutely positioned element and there's no easy way to contain it within its parent, we have to set the distance from the top of the page. In order to make this more dynamic for varying heights ofEntityProfileNavBar
I'm setting an empty div above the drawer and a ref on that div to get theoffsetTop
of it so we know how far to push down the drawer.Here's the issue before the fix:
Here it is after the fix:
And it still looks good when it's only on one line:
Checklist