Skip to content

Commit

Permalink
[Enterprise Search] Fix styling for reorderable tables (elastic#147929)
Browse files Browse the repository at this point in the history
This updates Enterprise Search table styling to match what it was before
recent EUI updates.

Before:
<img width="1244" alt="Screenshot 2022-12-21 at 16 29 58"
src="https://user-images.githubusercontent.com/94373878/208943146-4a17ca9b-6328-4dc5-b3f5-730aa7a5be88.png">

After:
<img width="1254" alt="Screenshot 2022-12-21 at 16 33 29"
src="https://user-images.githubusercontent.com/94373878/208943165-9d56ae7d-58ee-4bea-a6dd-ae2e32b4d9f4.png">
  • Loading branch information
sphilipse authored and crespocarlos committed Dec 23, 2022
1 parent 36b07d6 commit 5a2af0f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export const SearchIndex: React.FC = () => {
content: <SearchIndexIndexMappings />,
id: SearchIndexTabId.INDEX_MAPPINGS,
name: i18n.translate('xpack.enterpriseSearch.content.searchIndex.indexMappingsTabLabel', {
defaultMessage: 'Index Mappings',
defaultMessage: 'Index mappings',
}),
},
];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
.reorderableTable {

&Header {
> .euiFlexGroup {
margin: $euiSizeXS 0;
}
}

&NoItems {
border-top: $euiBorderThin;
background-color: $euiColorEmptyShade;
Expand All @@ -9,18 +15,8 @@
border-top: $euiBorderThin;
background-color: $euiColorEmptyShade;

> .euiFlexGroup {
margin: 0;
}

> .euiFlexGroup:nth-child(2) > .euiFlexItem {
margin-top: 0;
}
}

&Header {
> .euiFlexGroup {
margin: ($euiSizeM * -1) 0;
> .euiFlexGroup > .euiFlexItem {
margin: $euiSizeM 0;
}
}

Expand Down

0 comments on commit 5a2af0f

Please sign in to comment.