Falko Schindler 2 anos atrás
pai
commit
a96435d292

+ 4 - 5
website/more_documentation/chat_message_documentation.py

@@ -2,8 +2,7 @@ from nicegui import ui
 
 
 def main_demo() -> None:
-    name = 'Me'
-    ui.chat_message(
-        'Hello NiceGUI!', name=name, stamp='now',
-        avatar=f'https://robohash.org/{name}?bgset=bg2'
-    )
+    ui.chat_message('Hello NiceGUI!',
+                    name='Robot',
+                    stamp='now',
+                    avatar='https://robohash.org/ui')