-
Notifications
You must be signed in to change notification settings - Fork 843
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
EuiSuperDatePicker leaves unnecessary margin on right side when used in FlexGroup #2225
Comments
@shahzad31 The gutterSize is necessary to put a space between the date picker and the refresh button. Looking at your code I see you're only indicating down to the wrapper you have around the date picker |
@cchaos here is the wrapper
|
So it's actually more of a combination of the negative margins produced by the EuiFlexGroup and the This will take some time to figure out. I tried to find a workaround for now, but there wasn't anything obvious that wouldn't then get quite messed up once this actually fixed. |
@cchaos since it has fixed gutter small, why not use max-width: calc(100% + 8px); ? i think that will solve the problem. |
That's what I'm thinking too, but we'd have to check all the current usages to ensure the solution works no matter where it's placed. |
Closing this, since new issue should be open for missed use case. |
In UpTime we are using EuiSuperDatePicker in header bar, when used like this
EuiSuperDatePicker itself is a flex group with guttersize "s" so it leaves margin at end as shown below

I think this can be resolved by providing option to override the guttersize in component or by customizing it's css.
This issue was discovered in UpTime app #40585
The text was updated successfully, but these errors were encountered: