libp2p / observer-toolkit

🐣 [WIP] toolkit for building libp2p introspection widgets + a few useful out-of-the-box widgets
https://libp2p.io
MIT License
2 stars 2 forks source link

Add overflow-safe tooltips and update styles #20

Closed AlanSl closed 4 years ago

AlanSl commented 4 years ago

This mainly adds tooltips to the SDK with examples for PeerIds and the Timeline...

...including a feature to ensure they don't overflow a specified container:

It also updates many styles to be closer to the designs and fixes a few bugs:

Example:

image

Examples of the tooltips automatically offsetting themselves to stay in the bounds of their specified container:

image

image

AlanSl commented 4 years ago

Just pushing a couple of fixes for small bugs

AlanSl commented 4 years ago

I'm just cherry-picking over a couple of commits that fixed some small style regressions that were visible in the staging build of the catalogue.