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