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 "wrap_long_lines" not working anymore #4325

Open
latze123 opened this issue Nov 7, 2024 · 1 comment · May be fixed by #4368
Open

Code_block "wrap_long_lines" not working anymore #4325

latze123 opened this issue Nov 7, 2024 · 1 comment · May be fixed by #4368
Labels
bug Something isn't working

Comments

@latze123
Copy link

latze123 commented Nov 7, 2024

Describe the bug
The code_block component doesn't wrap long lines anymore.

To Reproduce
Steps to reproduce the behavior:

  • Code/Link to Repo:
rx.tabs.content(
    rx.code_block(
        code=rx.cond(
            ProfileState.secret_is_hidden,
            f"curl -X GET {api_url}{ProfileState.get_api_key} -H \"Authorization: Bearer <API_SECRET>\"",
            f"curl -X GET {api_url}{ProfileState.get_api_key} -H \"Authorization: Bearer {ProfileState.get_api_secret}\"",
        ),
        language="bash",
        wrap_long_lines=True,
        min_height="200px",
    ),
    value="curl",
)

Expected behavior
The code lines in this code_block should break as before, given the "True" value for wrap_long_lines.

Screenshots
grafik

Specifics (please complete the following information):

  • Python Version: 3.10.5
  • Reflex Version: 0.6.4
  • OS: Windows 10
  • Browser (Optional): Firefox 132.0.1

Additional context
In my last installed version of Reflex (should be 0.6.0), it worked fully fine.

@latze123 latze123 added the bug Something isn't working label Nov 7, 2024
Copy link

linear bot commented Nov 7, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant