Commit 2a10f12
Make the style of
### Motivation
Fix zauberzeug#5270, where the style of `ui.separator().props('vertical')` doesn't
work as expected in NiceGUI 3.0.0. above.
<!-- What problem does this PR solve? Which new feature or improvement
does it implement? -->
<!-- Please provide relevant links to corresponding issues and feature
requests. -->
### Implementation
change
```css
.nicegui-separator {
width: 100%;
}
```
into
```css
.q-separator--vertical.nicegui-separator {
width: 1px;
}
.q-separator--horizontal.nicegui-separator {
width: 100%;
}
```
<!-- What is the concept behind the implementation? How does it work?
-->
<!-- Include any important technical decisions or trade-offs made -->
### Progress
- [x] I chose a meaningful title that completes the sentence: "If
applied, this PR will..."
- [x] The implementation is complete.
- [ ] Pytests have been added (or are not necessary).
- [x] Documentation has been added (or is not necessary).
### Test
Testing it by:
```python3
from nicegui import ui
def index():
with ui.column():
ui.button('1')
ui.separator()
ui.button('2')
with ui.row():
ui.button('1')
ui.separator().props('vertical')
ui.button('2')
ui.run(
root=index
)
```
It should work as following:
<img width="174" height="220" alt="image"
src="https://github.com/user-attachments/assets/0bf3cfb7-3630-4677-ac9c-5d05606036eb"
/>
---------
Co-authored-by: Falko Schindler <[email protected]>ui.separator be different in different orientation (zauberzeug#5271)1 parent cee11b3 commit 2a10f12
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
| 218 | + | |
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
| |||
0 commit comments