limit the displayed width of hostnames in sidebar

In order to maintain steady width and avoid jumping ui