浏览代码

added css entry

Natan 1 年之前
父节点
当前提交
78f0be1dd3
共有 2 个文件被更改,包括 5 次插入1 次删除
  1. 4 0
      nicegui/static/nicegui.css
  2. 1 1
      website/more_documentation/jsoneditor_documentation.py

+ 4 - 0
nicegui/static/nicegui.css

@@ -68,6 +68,10 @@
   width: 100%;
   height: 16rem;
 }
+.nicegui-jsoneditor {
+  width: 100%;
+  height: 16rem;
+}
 .nicegui-scroll-area {
   width: 100%;
   height: 16rem;

+ 1 - 1
website/more_documentation/jsoneditor_documentation.py

@@ -14,4 +14,4 @@ def main_demo() -> None:
             'string': 'Hello World'
         }}},
         on_select=lambda e: ui.notify(f'Select: {e}'),
-        on_change=lambda e: ui.notify(f'Change: {e}')).classes('w-full')
+        on_change=lambda e: ui.notify(f'Change: {e}'))