limit max width of a layer name

expand it on click