-
Notifications
You must be signed in to change notification settings - Fork 883
[EuiEmptyPrompt] Allow horizontal image to be smaller than 50% and added a gap
#5663
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
Changes from 3 commits
17ee981
a47ab16
d88cf01
f32eca7
207b05c
e2ea02f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,6 +12,7 @@ | |
| // Consumers should use an EuiImage (recommended) with the horizontal layout | ||
| // But they can use for example an img or other react node | ||
| > * { | ||
| flex-shrink: 1; | ||
| max-width: convertToRem(360px); | ||
| } | ||
| } | ||
|
|
@@ -89,22 +90,18 @@ | |
| display: flex; | ||
| align-items: center; | ||
| justify-content: center; | ||
| } | ||
|
|
||
| .euiEmptyPrompt__content { | ||
| @include euiBreakpoint('l', 'xl') { | ||
| padding: $euiSizeL 0; | ||
| min-width: 33%; | ||
| max-width: 50%; | ||
| } | ||
|
Comment on lines
94
to
97
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
What if instead of a |
||
| } | ||
|
|
||
| .euiEmptyPrompt__contentInner { | ||
| .euiEmptyPrompt__content { | ||
| max-width: $euiTextConstrainedMaxWidth; | ||
| } | ||
|
|
||
| .euiEmptyPrompt__icon, | ||
| .euiEmptyPrompt__content { | ||
| @include euiBreakpoint('l', 'xl') { | ||
| width: 50%; | ||
| padding: $euiSizeL 0; | ||
| } | ||
| } | ||
|
|
||
|
|
@@ -122,5 +119,11 @@ | |
| .euiEmptyPrompt__footer { | ||
| padding: $amount; | ||
| } | ||
|
|
||
| &.euiEmptyPrompt--horizontal { | ||
| .euiEmptyPrompt__main { | ||
| gap: $amount; // sass-lint:disable-line no-misspelled-properties | ||
| } | ||
| } | ||
| } | ||
| } | ||

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.
The other illustrations have the size
"fullWidth". Also we're saying in our docs: