nextra icon indicating copy to clipboard operation
nextra copied to clipboard

How do I change the length of sidebar in theme.config.tsx

Open AnanyaGB opened this issue 1 year ago • 4 comments

AnanyaGB avatar Apr 01 '23 07:04 AnanyaGB

it is currently defaulted to nx-w-64. We should have a way to change the width of the sidebar. Also, if there is more content added after the sidebar the links on the page get compressed (without a scroll bar)

abhaytalreja avatar Apr 08 '23 03:04 abhaytalreja

Hi @abhaytalreja ! Did you find a way to modify the width of the sidebar?

UPDATE - I've created this issue; https://github.com/shuding/nextra/issues/2666

james-bowers avatar Jan 31 '24 08:01 james-bowers

Hey @james-bowers. I tried to modify the width of the sidebar, by tweaking the principal CSS file. It served as a workaround, but use extreme caution, other stylings might break when doing so, as it did in my case.

AnanyaGB avatar Jan 31 '24 08:01 AnanyaGB

Thanks for getting back to me @AnanyaGB, really appreciate it! I've opened a new issue to see how we can avoid those extra breakages for things like toggling the sidebar menu when setting a width for the sidebar in the CSS

https://github.com/shuding/nextra/issues/2666

james-bowers avatar Jan 31 '24 08:01 james-bowers