F
Filament14mo ago
Hemith

Change fileupload area height for pdf

There is a lot of space with the upload area and currently uploaded file for pdfs. Is there any way i can reduce this.
No description
8 Replies
toeknee
toeknee14mo ago
Did you set a height for it? Can you provide a copy of the file upload code
Hemith
HemithOP14mo ago
Here is the code:
FileUpload::make('document_link')
->imagePreviewHeight('60')
->label('Document')
->disk('s3')
->directory('user-documents')
->visibility('public')
->openable()
->acceptedFileTypes(['application/pdf']),
FileUpload::make('document_link')
->imagePreviewHeight('60')
->label('Document')
->disk('s3')
->directory('user-documents')
->visibility('public')
->openable()
->acceptedFileTypes(['application/pdf']),
toeknee
toeknee14mo ago
->imagePreviewHeight('60') remove it
Hemith
HemithOP14mo ago
still the same issue. I added the imagePreviewHeight because the default was not working. Do i need to set it with css?
toeknee
toeknee14mo ago
Are you on the latest v2? I've never seen it be like that without a height setting. Check the element and hat is being set to cause the height
Hemith
HemithOP14mo ago
I think it's because of the v3. When I was using filament v2, it was working fine.
DrByte
DrByte14mo ago
One strategy could be to compare the generated HTML markup and CSS applied to it, between v2 and v3 ... as it's rendered in the browser ... and then use that to source-dive into what's different (and where) in v3.
Hemith
HemithOP14mo ago
Ill try doing tht thanks
Want results from more Discord servers?
Add your server