浏览代码

refactor: radix section default size (#3406)

Jishnu N 11 月之前
父节点
当前提交
83d99889ec

+ 2 - 2
reflex/components/radix/themes/layout/section.py

@@ -16,5 +16,5 @@ class Section(el.Section, RadixThemesComponent):
 
 
     tag = "Section"
     tag = "Section"
 
 
-    # The size of the section: "1" - "3" (default "3")
-    size: Var[LiteralSectionSize]
+    # The size of the section: "1" - "3" (default "2")
+    size: Var[LiteralSectionSize] = Var.create_safe("2")

+ 1 - 1
reflex/components/radix/themes/layout/section.pyi

@@ -123,7 +123,7 @@ class Section(el.Section, RadixThemesComponent):
 
 
         Args:
         Args:
             *children: Child components.
             *children: Child components.
-            size: The size of the section: "1" - "3" (default "3")
+            size: The size of the section: "1" - "3" (default "2")
             access_key:  Provides a hint for generating a keyboard shortcut for the current element.
             access_key:  Provides a hint for generating a keyboard shortcut for the current element.
             auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
             auto_capitalize: Controls whether and how text input is automatically capitalized as it is entered/edited by the user.
             content_editable: Indicates whether the element's content is editable.
             content_editable: Indicates whether the element's content is editable.