ui-select icon indicating copy to clipboard operation
ui-select copied to clipboard

Text overflow on ui-search control

Open smithk58 opened this issue 10 years ago • 5 comments
trafficstars

Can be seen in the top ui control in your demo plunkr: http://plnkr.co/edit/a3KlK8dKH3wwiiksDSn2?p=preview

If you select too long of an element it overflows out of the control. It looks like it's happening because the .btn class is applying white-space:nowrap.

Here's a quick/dirty/temporary fix for someone if they need it: .ui-select-match-text{ display:inline-block; overflow:hidden; text-overflow: ellipsis; width:95%; }

smithk58 avatar Oct 27 '15 15:10 smithk58

Thank you, your fix helped me!

AlexEmashev avatar Nov 28 '15 11:11 AlexEmashev

there is a way better solution .ui-select-toggle{display:flex;justify-content:space-between;} .ui-select-match-text{overflow-x:hidden; text-overflow:ellipsis;} here is working plunker http://plnkr.co/edit/d4gCXgLHaPKmP89uiP6e?p=preview

denis-bondarenko avatar Dec 23 '15 13:12 denis-bondarenko

Both of those examples show default demos.

jziggas avatar Feb 26 '16 18:02 jziggas

If you're referring to my example and @denis-bondarenko's examples: -Mine IS pointing at the default demo. I was only giving steps to reproduce the issue. -Denis's example isn't the default demo. Apply the reproduction steps I listed to the one he linked to and you'll see it doesn't overflow.

smithk58 avatar Feb 26 '16 18:02 smithk58

Thank you very much smithk58 ! It's work perfectly !

Wenakari avatar Jul 12 '18 06:07 Wenakari