rio-labs / rio

WebApps in pure Python. No JavaScript, HTML and CSS needed
https://rio.dev
Apache License 2.0
453 stars 14 forks source link

[BUG]: `rio.CodeBlock` display_controls=False doesn't align properly #55

Closed Sn3llius closed 3 weeks ago

Sn3llius commented 3 weeks ago

Describe the bug

The rio.CodeBlock component's display_controls = False option doesn't align properly when rendered.

Expected Behavior

The rio.CodeBlock component should align properly regardless of the display_controls setting

Steps to Reproduce

  1. Create a rio.CodeBlock component.
  2. Set the display_controls attribute to False.
  3. Render the component and observe the alignment issues.

Screenshots/Videos

image

Operating System

Windows, MacOS, Linux

What browsers are you seeing the problem on?

Chrome, Safari, Edge

Browser version

No response

What device are you using?

Desktop

Additional context

No response