diff --git a/src/niceguiex/components/file_drop.py b/src/niceguiex/components/file_drop.py index ffc3e1a..4c9661f 100644 --- a/src/niceguiex/components/file_drop.py +++ b/src/niceguiex/components/file_drop.py @@ -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')