Rodja Trappe 2 年之前
父節點
當前提交
5e5c595990
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      api_docs_and_examples.py

+ 2 - 1
api_docs_and_examples.py

@@ -82,6 +82,7 @@ Creating a user interface with NiceGUI is as simple as writing a single line of
 '''
     with example(hello_world, first_col=2):
         ui.label('Hello, world!')
+        ui.markdown('Have a look at the full <br/> [API reference](reference)!  ')
 
     common_elements = '''#### Common UI Elements
 
@@ -102,7 +103,7 @@ Binding values between UI elements is built into NiceGUI.
 '''
     with example(binding, first_col=2):
         slider = ui.slider(min=0, max=100, value=50)
-        ui.number('Value').bind_value(slider, 'value')
+        ui.number('Value').bind_value(slider, 'value').classes('fit')
 
     # HACK: this comment prevents another blank line sneaking into the example above