websemantics / Image-Select

Image Select is an extension of Chosen, a jQuery plugin that makes long, unwieldy select boxes much more user-friendly. It provides image support for Single and Multi select HTML tags.
http://websemantics.github.io/Image-Select
MIT License
148 stars 44 forks source link

Icon's width is not the same as that defined in css #42

Closed khiav223577 closed 7 years ago

khiav223577 commented 7 years ago

In css, the icon width is set to 18px

.chose-image-small {
    width:18px;
    max-height:18px;
    vertical-align: middle;
    margin: -3px 0 0 0;
    padding: 0 3px 0 0;
}

But actually, it is 15px 2017-05-18 5 55 56

Is this expected result?


change

.chose-image-small {
    margin: -3px 0 0 0;
    padding: 0 3px 0 0;
}

to

.chose-image-small {
    margin: -3px 3px 0 0;
}

will fix this issue

websemantics commented 7 years ago

Nicely spotted :) .. should be fixed, thanks @khiav223577