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

Code Block Wrapping Behavior is Inconsistent. #7449

Closed
alexfornuto opened this issue May 18, 2022 · 1 comment · Fixed by #7485
Closed

Code Block Wrapping Behavior is Inconsistent. #7449

alexfornuto opened this issue May 18, 2022 · 1 comment · Fixed by #7485
Labels
bug An error in the Docusaurus core causing instability or issues with its execution domain: theme Related to the default theme components

Comments

@alexfornuto
Copy link

Copied from #7036

@Josh-Cena thanks for the reply. Example preview here shows the following example, two code blocks, each in a tab:

<Tabs>

<TabItem value="yum" label="Yum">

```abnf title="/etc/yum.repos.d/pomerium-pomerium.repo"
[pomerium-pomerium]
name=pomerium-pomerium
baseurl=https://dl.cloudsmith.io/public/pomerium/pomerium/rpm/el/$releasever/$basearch
repo_gpgcheck=1
enabled=1
gpgkey=https://dl.cloudsmith.io/public/pomerium/pomerium/gpg.6E388440B94E1407.key
gpgcheck=1
sslverify=1
pkg_gpgcheck=1
```

</TabItem>
<TabItem value="deb" label="Deb">

```bash
curl -1sLf 'https://dl.cloudsmith.io/public/pomerium/pomerium/gpg.6E388440B94E1407.key' | apt-key add -
echo "deb https://dl.cloudsmith.io/public/pomerium/pomerium/deb/debian buster main" > /etc/apt/sources.list.d/pomerium-pomerium.list
```

</TabItem>
</Tabs>

While other code blocks on the linked page display and use the wrap button, these do not behave as expected:

  • In the first tab the button is present but not functioning.
  • In the second tab the button is not present, despite the code block overflowing.

This example is using 2.0.0-beta.20

Originally posted by @alexfornuto in #7036 (comment)

@Josh-Cena Josh-Cena added bug An error in the Docusaurus core causing instability or issues with its execution domain: theme Related to the default theme components labels May 19, 2022
@dpang314
Copy link
Contributor

@alexfornuto The changes in the pull request should resolve the behavior you ran into in your example

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 domain: theme Related to the default theme components
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants