浏览代码

#826 improve demo

Falko Schindler 2 年之前
父节点
当前提交
a96435d292
共有 1 个文件被更改,包括 4 次插入5 次删除
  1. 4 5
      website/more_documentation/chat_message_documentation.py

+ 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')