Skip to content

ui.separator().props("vertical") takes width: 100% instead of 1px with new nicegui.css #5270

@backbord

Description

@backbord

First Check

  • I added a very descriptive title here.
  • This is not a Q&A. I am sure something is wrong with NiceGUI or its documentation.
  • I used the GitHub search to find a similar issue and came up empty.

Example Code

from nicegui import ui

ui.separator().props("vertical")

ui.run()

Description

Hi,

I noticed that my ui.separator.props("vertical") elements stretched to occupy all the horizontal space instead of just 1px after updating to NiceGUI 3.

It seems to stem from f571ff1#diff-5d9345fb48521f49b1b64d5d6e3cec49ab5a59b10621f21532e1d87613e3e69bR43

Can you advise on how to re-enable the "vertical" feature without having to add a style like ui.separator().props("vertical").style("width: 1px")?

Thanks!
Tim

NiceGUI Version

3.0.4

Python Version

3.12.11

Browser

Firefox

Operating System

Linux

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugType/scope: A problem that needs fixingreviewStatus: PR is open and needs review

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions