feat: add indentDepth prop to TOCInline component#201
feat: add indentDepth prop to TOCInline component#201tomelliot wants to merge 2 commits intotimlrx:mainfrom
Conversation
|
|
Sorry for the confusion, The modifications also appears to cause it to be double indented as the nested indents are already indented in this line: https://github.com/timlrx/pliny/blob/main/packages/pliny/src/ui/TOCInline.tsx#L108 |
|
Hmm - I might be missing something, but from what I'm seeing, that works differently from what I'm hoping:
What I'm hoping for:
This only indents the whole TOC (for disclosure/collapsible TOC), not each individual heading sublevel |
|
@timlrx if you're interested in including this functionality but need something else in the PR just let me know, otherwise feel free to close it if it's not relevant. |
|
Ok thanks for the clarification. I agree that it would be nice to support indentation at various sub-heading level. I am on a break for the next two weeks so will review later. |
|
Hey @timlrx - just a reminder in case you're interested in merging this. |
The new features in v1 blog post for the tailwind-nextjs-starter-blog repo says
But this property and feature doesn't exist in the package.
I couldn't run any tests or anything to check if this worked (none available in the repo), but I think this works 🤞