EasyAdminBundle icon indicating copy to clipboard operation
EasyAdminBundle copied to clipboard

Vich image form field unstyled

Open alterphp opened this issue 7 years ago • 6 comments

The style of Vich file uploader has been affected by the theme 2.0.

screenshot_2018-12-18 creer animation

alterphp avatar Dec 18 '18 14:12 alterphp

Hi @alterphp, have you found a workaround for this issue ?

plewin avatar Jan 19 '19 10:01 plewin

No, I did not look for any workaround.

alterphp avatar Jan 20 '19 12:01 alterphp

Same issue here, I will try overriding the Vich block vich_file_widget on bootstrap_4.html.twig or playing with easyadmin default css rules.

rernesto avatar Feb 11 '19 22:02 rernesto

@rernesto did You solve it?

kubaceg avatar Mar 06 '19 17:03 kubaceg

@kubaceg I am sorry, I didn't. The priorities on my project have changed a little bit and I am on dead line, so look and feel it's secondary right now as long the component works. I'll be back to this as soon as I can. I really don't like the way image form looks.

rernesto avatar Apr 06 '19 15:04 rernesto

@kubaceg At least the button size could be fixed using this:

div.btn.btn-secondary.input-file-container {
    max-height: 30px;
}

I'll be back to this soon in order to change the button color. This is the block in bootstrap_4.html.twig affecting the button appearance.

<span class="btn-label">{{ form_widget(form.file, { 'attr': { 'onchange': file_upload_js }}) }}</span>

rernesto avatar Apr 06 '19 17:04 rernesto