Skip to content

Horizontal line #265

Closed Answered by falkoschindler
shakamoushie asked this question in Q&A
Jan 20, 2023 · 3 comments · 1 reply
Discussion options

You must be logged in to vote

The problem with horizontal lines is usually that they collapse to a width of 0 px. It's the same for our built-in ui.separator. Both are not visible:

ui.html('<hr />')
ui.separator()

But setting their width to, e.g., 100 % works:

ui.html('<hr />').classes('w-full')
ui.separator().classes('w-full')

Maybe we should set the default width of a ui.separator to 100 % to make it more intuitive. Usually we try to keep initial classes and styles to a minimum in order to avoid confusion and interference with classes and styles set by the user. But a class w-full shouldn't be problematic.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by falkoschindler
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@falkoschindler
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants