This commit is contained in:
2025-09-27 13:04:34 +02:00
parent 863dce3816
commit 8d9f37dbd7

View File

@@ -35,11 +35,8 @@ class FileDrop(ui.element):
self.upload.props(f'accept="{accept}"') self.upload.props(f'accept="{accept}"')
# Remove the default upload button and add custom content # Remove the default upload button and add custom content
with self.upload.add_slot('header'): with self.upload.add_slot('header'):
with ui.column().classes( with ui.column().classes('w-full h-full min-h-[120px] items-center justify-center p-8'):
'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.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('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') ui.label('Drag and drop your files').classes('text-sm text-gray-400')