ソースを参照

remove css manipulation

Natan 1 年間 前
コミット
862f00e5ef

+ 0 - 1
nicegui/elements/json_editor.py

@@ -23,7 +23,6 @@ class JsonEditor(Element, component='json_editor.js', exposed_libraries=['lib/va
         """
         super().__init__()
         self._props['properties'] = properties
-        self._classes = ['nicegui-json-editor']
 
         if on_select:
             def handle_on_select(e: GenericEventArguments) -> None:

+ 0 - 4
nicegui/static/nicegui.css

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

+ 1 - 1
website/more_documentation/json_editor_documentation.py

@@ -14,4 +14,4 @@ def main_demo() -> None:
     }
     ui.json_editor({'content': {'json': json}},
                    on_select=lambda e: ui.notify(f'Select: {e}'),
-                   on_change=lambda e: ui.notify(f'Change: {e}')).classes('h-80')
+                   on_change=lambda e: ui.notify(f'Change: {e}'))