Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hide_table_of_contents: true does not expand column to page width #2744

Closed
MichaelBaj opened this issue May 13, 2020 · 3 comments · Fixed by #2759
Closed

hide_table_of_contents: true does not expand column to page width #2744

MichaelBaj opened this issue May 13, 2020 · 3 comments · Fixed by #2759
Labels
bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers

Comments

@MichaelBaj
Copy link

🐛 Bug Report

Adding the front matter tag hide_table_of_contents: true does not expand column to page width.

To Reproduce

  1. Create any page with content, preferably with headings >2.
  2. Observe right hand TOC and formatting
  3. Add meta tag hide_table_of_contents: true
  4. Observe the right hand TOC is no longer present, yet the contents are still fixed at 75% page width

Expected behavior

I expected the contents to expand to the row width, which would have been 100% of the remaining space, as is depicted in the original feature request on their CONTRIBUTING page: #2012

Actual Behavior

Removing TOC kept the page width the same as can be seen in this example:
https://docs.128technology.com/docs/api_rest_4.2.0

Your Environment

  • Docusaurus version used: 2.0.0-alpha.54
  • Environment name and version: Chrome 81.0.4044.138, Node.js 13.8.0
  • Operating system and version: macOS 10.15.4

Reproducible Demo

You can see the results https://docs.128technology.com/docs/api_rest_4.2.0

@MichaelBaj MichaelBaj added bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers labels May 13, 2020
@yangshun
Copy link
Contributor

I think this is a regression in the UI when @lex111 was tweaking it to make the code block width work. The test plan of #2012 showed that it was working.

@ysulyma
Copy link
Contributor

ysulyma commented Aug 22, 2022

I'm still experiencing this in Docusaurus 2.0.1.

@slorber
Copy link
Collaborator

slorber commented Aug 24, 2022

@ysulyma then create a repro and show screenshots of expected VS actual behavior. Your comment is not really actionable for us

To me it works as intended

CleanShot 2022-08-24 at 11 12 38@2x

CleanShot 2022-08-24 at 11 12 12@2x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants