cleanup
This commit is contained in:
@@ -35,11 +35,8 @@ class FileDrop(ui.element):
|
||||
self.upload.props(f'accept="{accept}"')
|
||||
|
||||
# Remove the default upload button and add custom content
|
||||
|
||||
with self.upload.add_slot('header'):
|
||||
with ui.column().classes(
|
||||
'w-full h-full min-h-[120px] items-center justify-center p-8'
|
||||
):
|
||||
with ui.column().classes('w-full h-full min-h-[120px] items-center justify-center p-8'):
|
||||
ui.icon('cloud_upload', size='3em').classes('text-gray-400 mb-4')
|
||||
ui.label('Drop files here or click to browse').classes('text-lg text-gray-600 mb-2')
|
||||
ui.label('Drag and drop your files').classes('text-sm text-gray-400')
|
||||
|
||||
Reference in New Issue
Block a user