-
Notifications
You must be signed in to change notification settings - Fork 4k
Revamp the dataframe search bar to be more responsive #10534
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
Revamp the dataframe search bar to be more responsive #10534
Conversation
| "& .gdg-seveqep": { | ||
| // Make the search field more responsive to the grid width and use | ||
| // rem units for everything. | ||
| maxWidth: "19rem", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please leave a comment about how we landed at 19rem? Even if it is just We picked 19rem arbitrarily because it looked good on a laptop screen or whatever. This will help others in the future in case this has to be revisited
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good, added some comments 👍
| // rem units for everything. | ||
| maxWidth: "19rem", | ||
| width: "80%", | ||
| minWidth: "6rem", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added comments 👍
raethlein
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 🔍
Describe your changes
Makes the dataframe search bar more responsive to the available width and to the root font size.
GitHub Issue Link (if applicable)
st.dataframeresponsive #10532Testing Plan
Contribution License Agreement
By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.