UI bugs when tag is long

issue: #4864