EasyAdminBundle icon indicating copy to clipboard operation
EasyAdminBundle copied to clipboard

bootstrap Input group rendering problem

Open stloc opened this issue 3 years ago • 4 comments

Describe the bug bootstrap Input group rendering problem

To Reproduce image easyadmin v3.2.9

https://getbootstrap.com/docs/5.1/forms/input-group/

stloc avatar Feb 02 '22 09:02 stloc

I asked the question some time ago on Slack without success. This is what I was working with at that time. But I ended up removing them for now.

<div class="field-number form-group">
    {{ form_label(edit_form.weight) }}
    <div class="input-group form-widget" style="display: contents">
        {{ form_widget(edit_form.weight) }}
        <div class="input-group-append">
            <span class="input-group-text" id="basic-addon2">Kg</span>
        </div>
    </div>
    {{ form_errors(edit_form.weight) }}
</div>

cedricgeffroy avatar Feb 02 '22 20:02 cedricgeffroy

More info here : https://github.com/EasyCorp/EasyAdminBundle/pull/2843

cedricgeffroy avatar Feb 02 '22 20:02 cedricgeffroy

Hello,

Same problem with EA v4.0.6 with Bootstrap 5 layout :(

ea_bug_design

fdiedler avatar Feb 18 '22 09:02 fdiedler

@javiereguiluz I investigated and found the issue with Bootstrap rendering input groups. You need to set the height property of "input-group-text" to "auto" (or remove the property).

As a workaround :

.input-group-text {
   height: auto;
}

fdiedler avatar Feb 24 '22 09:02 fdiedler

Same here. (Just saying to get updates from this issue.)

webbird avatar Apr 06 '23 13:04 webbird

I can't reproduce this as of v4.6.5:

image

@javiereguiluz This issue can possibly be closed.

AmProsius avatar May 12 '23 14:05 AmProsius