This commit is contained in:
Alek Petuskey 2025-02-22 16:10:30 +00:00 committed by GitHub
commit de8536611b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

BIN
assets/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@ -13,6 +13,8 @@ from reflex.components.component import (
StatefulComponent,
)
from reflex.components.el.elements.forms import Input
from reflex.components.lucide import icon
from reflex.components.radix.themes.components.button import button
from reflex.components.radix.themes.layout.box import Box
from reflex.config import environment
from reflex.constants import Dirs
@ -385,9 +387,8 @@ class StyledUpload(Upload):
The styled upload component.
"""
# Set default props.
props.setdefault("border", "1px dashed var(--accent-12)")
props.setdefault("padding", "5em")
props.setdefault("textAlign", "center")
if not children:
children = [button("Upload Files", icon("upload", size=12), align_items="center")]
# Mark the Upload component as used in the app.
Upload.is_used = True