1
0
Эх сурвалжийг харах

improve demo for scroll area

Falko Schindler 1 жил өмнө
parent
commit
645116e03f

+ 3 - 4
website/more_documentation/scroll_area_documentation.py

@@ -5,10 +5,9 @@ from ..documentation_tools import text_demo
 
 def main_demo() -> None:
     with ui.row():
-        with ui.card().classes('w-32 h-32'):
-            with ui.scroll_area():
-                ui.label('I scroll. ' * 20)
-        with ui.card().classes('w-32 h-32'):
+        with ui.scroll_area().classes('w-32 h-32 border'):
+            ui.label('I scroll. ' * 20)
+        with ui.column().classes('p-4 w-32 h-32 border'):
             ui.label('I will not scroll. ' * 10)