Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make boolean field less tall by default #4901

Merged
merged 2 commits into from
Jun 8, 2020
Merged

Make boolean field less tall by default #4901

merged 2 commits into from
Jun 8, 2020

Conversation

fzaninotto
Copy link
Member

Problem

<BooleanField> makes all lines in a <Datagrid> taller.

Solution

Make it smaller. Also, use smaller chips in <ReferenceManyField> in datagrids. This makes the grid data density consistent whether it contains <BooleanField> components or not.

Before

image

After

image

@fzaninotto fzaninotto added the RFR Ready For Review label Jun 5, 2020
root: {
display: 'flex',
},
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should add { name: 'RaBooleanField' }

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Absolutely, thanks for the review!

@djhi djhi added this to the 3.7.0 milestone Jun 8, 2020
@djhi djhi merged commit 2e052ab into next Jun 8, 2020
@djhi djhi deleted the booleanfield-height branch June 8, 2020 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants