diff --git a/app/Filament/App/Resources/FileResource/Pages/ListFiles.php b/app/Filament/App/Resources/FileResource/Pages/ListFiles.php index 0c32b23402..688e121e9c 100644 --- a/app/Filament/App/Resources/FileResource/Pages/ListFiles.php +++ b/app/Filament/App/Resources/FileResource/Pages/ListFiles.php @@ -568,7 +568,7 @@ protected function getHeaderActions(): array ->label('Global Search') ->modalSubmitAction(false) ->modalCancelAction(false) - ->form([ + ->form([ // TODO: replace modal with custom page Wizard::make([ Step::make('Input') ->schema([ @@ -594,24 +594,31 @@ protected function getHeaderActions(): array ->deletable(false) ->reorderable(false) ->defaultItems(0) - ->columns(5) + ->columns(6) ->live() - ->schema([ // TODO: make pretty and mobile friendly + ->schema([ TextInput::make('name') ->hidden(), + TextInput::make('size') + ->hidden(), TextInput::make('symlink') ->hidden(), + TextInput::make('directory') + ->hidden(), Placeholder::make('icon') ->label('') ->content(fn (Get $get) => new HtmlString(Blade::render(<<<'BLADE'
- BLADE, ['icon' => $get('symlink') ? 'tabler-file-symlink' : 'tabler-file']))), + BLADE, ['icon' => $get('directory') ? 'tabler-folder' : ($get('symlink') ? 'tabler-file-symlink' : 'tabler-file')]))), Placeholder::make('name') ->label('') ->content(fn (Get $get) => $get('name')) ->columnSpan(3), + Placeholder::make('size') + ->label('') + ->content(fn (Get $get) => $get('directory') ? '' : convert_bytes_to_readable($get('size'))), Actions::make([ FormAction::make('edit') ->authorize(auth()->user()->can(Permission::ACTION_FILE_READ_CONTENT, Filament::getTenant()))