fixed the broken layout of info-box when it was compressed