docfx icon indicating copy to clipboard operation
docfx copied to clipboard

[Bug] Modern template does not support scroll spy

Open chuongmep opened this issue 2 years ago • 5 comments

Describe the bug

When we scroll mouse, content not follow by step.

image

To Reproduce Steps to reproduce the behavior:

  1. Use new Modern templete
  2. See error

Expected behavior It will be look good like default templete

image

Screenshots If applicable, add screenshots to help explain your problem.

Context (please complete the following information):

  • Browser: [e.g. chrome, safari, edge]
  • Form factor: [e.g. desktop, mobile]
  • Docfx version: 2.63.0
  • Template: [e.g. default, statictoc]

Additional context Add any other context about the problem here.

chuongmep avatar Mar 20 '23 15:03 chuongmep

Starting from bootstrap 5.2, the scrollspy becomes pretty unusable: https://github.com/twbs/bootstrap/issues/36431 We can wait for a fix to land in bootstrap or use a different scrollspy library.

yufeih avatar Mar 21 '23 00:03 yufeih

Any updates on this? 😊

MJECloud avatar Apr 21 '24 11:04 MJECloud

Hi @MJECloud , this is problem resolved

chuongmep avatar Apr 22 '24 10:04 chuongmep

Ah okay, so it's resolved by rendering all headlines? For example on the docfx website it doesn't highlight where you are. Which works in the Default Template.

image

MJECloud avatar Apr 22 '24 10:04 MJECloud

I think we should open another issue

chuongmep avatar Apr 22 '24 10:04 chuongmep