AirWalk-Digital / airview-next

Airview Next
MIT License
1 stars 2 forks source link

Page contents link location #40

Closed rob-at-airwalk closed 1 day ago

rob-at-airwalk commented 1 week ago

when navigating to page contents i.e. /docs/view/default/solutions/copilot_solutions_lvweslp2/_index.md#copilot-studio-formerly-power-virtual-agents

the title of the section being linked is hidden above the top banner

f-steel commented 6 days ago

it appears that we are using the MDXContent component to create the page content. h2's and h3's etc are created by this and the relevant id's are added to the tags so that the links can be anchored. The problem is that it's slightly off, probably due to some css elsewhere. A solution could be to apply custom css (something like scroll-margin-top: 20px) to the MDXContent so it navigates to the correct place

f-steel commented 5 days ago

found this pretty tricky so far. Seems like a lot of the functionality is hidden away via the component so may need to find out if part of the css is causing the offset and fix it from there

rob-at-airwalk commented 2 days ago

recon this is the same issue as the collaborative editor ?

f-steel commented 1 day ago

https://github.com/AirWalk-Digital/airview-next/pull/53 fix for the issue now merged