Fix #331: Use the space available for the category and label inputs.