Fixes #2940: Unable to remove smart parameter with long name

@lzap , I can change it back to css  but the css solution pushed the close button to under the text