Fix UI bugs that were introduced by box-sizing: border-box