Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feat] Using tippy for map popover (#1539)
- Using Tippy to avoid complex positioning calculations. Hopefully, this will also prevent React RangeError: Maximum call stack size exceeded from happening. (BTW, I was wrong, Tippy does expose Popper's virtual element functionality, but under a different name: [getReferenceClientRect](https://atomiks.github.io/tippyjs/v6/all-props/#getreferenceclientrect), so I could use it here). Tried to keep the current tooltip behavior mostly unchanged - A bit of a clean up of the display logic in `MapContainer` - Tooltip positioning and overflow prevention now takes the boundaries of the container into account (`DeckGL` element) - Improve CSS styling: - using Flexbox instead of absolute positioning for the header row - setting margins _between_ the children of the containers instead of before the individual child elements (using `& > *+* { margin-top: ...}`) - using CSS grid for the tables - we can specify `row-gap` and `column-gap` and avoid outer padding for the content of the cells. This way the content can be correctly aligned with the text outside of the table Co-authored-by: Ilya Boyandin <ilyabo@gmail.com>
- Loading branch information
1 parent
2e6f8b7
commit 9bcb341
Showing
8 changed files
with
186 additions
and
212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.