-
Notifications
You must be signed in to change notification settings - Fork 0
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
Replace resize handle with border, and small UI touchups #7
Changes from all commits
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 |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
// stylelint-disable selector-no-qualifying-type | ||
.kbnDocTableWrapper { | ||
@include euiScrollBar; | ||
@include euiOverflowShadow; | ||
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. Added an overflow shadow to the legacy grid to improve the look of it with the new tabs design. It also looks good in the embeddable IMO. |
||
overflow: auto; | ||
display: flex; | ||
flex: 1 1 100%; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,23 +45,26 @@ export const SavedSearchEmbeddableBase: React.FC<SavedSearchEmbeddableBaseProps> | |
data-test-subj={dataTestSubj} | ||
> | ||
{isLoading && <EuiProgress size="xs" color="accent" position="absolute" />} | ||
<EuiFlexItem grow={false}> | ||
<EuiFlexGroup | ||
justifyContent="flexEnd" | ||
alignItems="center" | ||
gutterSize="xs" | ||
responsive={false} | ||
wrap={true} | ||
> | ||
{Boolean(prepend) && <EuiFlexItem grow={false}>{prepend}</EuiFlexItem>} | ||
|
||
{!!totalHitCount && ( | ||
<EuiFlexItem grow={false} data-test-subj="toolBarTotalDocsText"> | ||
<TotalDocuments totalHitCount={totalHitCount} /> | ||
</EuiFlexItem> | ||
)} | ||
</EuiFlexGroup> | ||
</EuiFlexItem> | ||
{(prepend || totalHitCount) && ( | ||
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. This gets rid of a few pixels in the embeddable due to the flex group gap when there is no content in the flex item. |
||
<EuiFlexItem grow={false}> | ||
<EuiFlexGroup | ||
justifyContent="flexEnd" | ||
alignItems="center" | ||
gutterSize="xs" | ||
responsive={false} | ||
wrap={true} | ||
> | ||
{Boolean(prepend) && <EuiFlexItem grow={false}>{prepend}</EuiFlexItem>} | ||
|
||
{!!totalHitCount && ( | ||
<EuiFlexItem grow={false} data-test-subj="toolBarTotalDocsText"> | ||
<TotalDocuments totalHitCount={totalHitCount} /> | ||
</EuiFlexItem> | ||
)} | ||
</EuiFlexGroup> | ||
</EuiFlexItem> | ||
)} | ||
|
||
<EuiFlexItem style={{ minHeight: 0 }}>{children}</EuiFlexItem> | ||
|
||
|
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.
Using
border
here makes the buttons 34px instead of 32px, so they're slightly larger than the ones next to them. Usingbox-shadow
instead seems to avoid this.