Falko Schindler 2 years ago
parent
commit
97f1e346d3
1 changed files with 2 additions and 3 deletions
  1. 2 3
      website/documentation.py

+ 2 - 3
website/documentation.py

@@ -235,8 +235,6 @@ def create_full() -> None:
         ui.button().props('icon=touch_app outline round').classes('shadow-lg')
         ui.label('Stylish!').style('color: #6E93D6; font-size: 200%; font-weight: 300')
 
-    elements_list = ['ui.label', 'ui.checkbox', 'ui.switch', 'ui.input', 'ui.textarea', 'ui.button']
-
     subheading('Try styling NiceGUI elements!')
     ui.markdown('''
         Try out how
@@ -246,13 +244,14 @@ def create_full() -> None:
     ''').classes('bold-links arrow-links')
     with ui.row():
         ui.label('Choose your favorite element from those available and start having fun!').classes('mx-auto my-auto')
+        elements_list = ['ui.label', 'ui.checkbox', 'ui.switch', 'ui.input', 'ui.textarea', 'ui.button']
         select_element = ui.select(options=elements_list, value='ui.button', on_change=lambda: elements_ui.refresh()) \
             .props('dense hide-bottom-space')
 
     @ui.refreshable
     def elements_ui():
         with ui.column().classes('w-full items-stretch gap-8 no-wrap min-[1500px]:flex-row'):
-            with demo.python_window(classes='w-full max-w-[44rem] grow'):
+            with demo.python_window(classes='w-full max-w-[44rem]'):
                 with ui.column().classes('w-full gap-4'):
                     ui.markdown(f'''
                         ```py