posthog.com icon indicating copy to clipboard operation
posthog.com copied to clipboard

Javascript client library page is no longer showing the sidebar

Open lharries opened this issue 2 years ago • 5 comments

The Javascript client library page is no longer showing the sidebar for me as shown below: Screenshot JavaScript - Docs - PostHog (Google Chrome) 2022-10-13 at 15 40@2x

(Macbook Pro 16inch, using Chrome 106.0.5249.103)

However the sidebar is showing up for React Native/Flutter etc.

lharries avatar Oct 13 '22 22:10 lharries

cc @pjhul

lharries avatar Oct 13 '22 22:10 lharries

Can't repro here. Let me know if you're still seeing this after a refresh.

image

corywatilo avatar Oct 14 '22 00:10 corywatilo

I think I've worked out how to reproduce it:

  • Start with the window quite small, then expand the window and the docs sidebar will be missing for that page

Here's a video showing it: https://share.cleanshot.com/SPfijh

When I close the page and re-open it, it works fine

Unlikely that this will happen often so feel free to ignore this issue if not a priority

lharries avatar Oct 14 '22 03:10 lharries

@smallbrownbike Have a hunch this might have to do with Gatsby breakpoints?

pjhul avatar Oct 14 '22 03:10 pjhul

When the "On this page" section is taller than the space allows, it gets put down in the action section. This should be more intuitive once this gets added. 😄

Screen Shot 2022-10-13 at 9 37 17 PM

smallbrownbike avatar Oct 14 '22 04:10 smallbrownbike