Closed tonywu6 closed 2 years ago
Fixes an issue where the generated table of contents will overlap the footer when the page is scrolled to the bottom, as can be seen in antvis/X6#1940.
This uses a plain div with position: sticky instead of the Affix component.
div
position: sticky
Affix
Before:
https://user-images.githubusercontent.com/93302820/160517847-9a04b501-c867-4f3e-8c89-4550bc49bdaf.mov
After:
https://user-images.githubusercontent.com/93302820/160517860-bcdef26f-f66f-4539-b20a-1abe2caae97b.mov
⚡️ Deploying PR Preview...
Fixes an issue where the generated table of contents will overlap the footer when the page is scrolled to the bottom, as can be seen in antvis/X6#1940.
This uses a plain
div
withposition: sticky
instead of theAffix
component.Before:
https://user-images.githubusercontent.com/93302820/160517847-9a04b501-c867-4f3e-8c89-4550bc49bdaf.mov
After:
https://user-images.githubusercontent.com/93302820/160517860-bcdef26f-f66f-4539-b20a-1abe2caae97b.mov