fix compact display mode layout bug