Albeiro-Dev
5/15/2019 - 8:07 PM

django autocomplete light fit 100%

Please, if your django autocomplete doesn't fit very well, add this to your styles css file or as a css script in your html:


.select2-container {
            width: 100% !important;
            min-width: 10em !important;
        }
        /* django-addanother bootstrap css fix */
        .related-widget-wrapper{
            padding-right: 16px;
            position: relative;
        }
        .related-widget-wrapper-link{
            position: absolute;
            top: 3px;
            right: 0px;
        }