From 8d9f37dbd72b6f1597a86d7db2cb9be97302e057 Mon Sep 17 00:00:00 2001 From: Alexander Thiess Date: Sat, 27 Sep 2025 13:04:34 +0200 Subject: [PATCH] cleanup --- src/niceguiex/components/file_drop.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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')