Skip to content

Commit

Permalink
[Discover] Vertically align source cells with others
Browse files Browse the repository at this point in the history
Signed-off-by: Miki <[email protected]>
  • Loading branch information
AMoo-Miki committed Jan 31, 2024
1 parent 71143df commit 8960bcf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,10 @@
max-height: 10em;
overflow: hidden;
}

.osdDocTableCell__source {
.osdDocTable__limitedHeight {
transform: translateY(-3px);
max-height: calc(10em - 3px);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const TableRow = ({
return (
<td
key={columnId}
className="osdDocTableCell eui-textBreakAll eui-textBreakWord"
className="osdDocTableCell eui-textBreakAll eui-textBreakWord osdDocTableCell__source"
data-test-subj="docTableField"
>
<div className="osdDocTable__limitedHeight">
Expand Down Expand Up @@ -128,11 +128,8 @@ export const TableRow = ({
);

const expandedTableRow = (
<tr key={'x' + row._id}>
<td
style={{ borderTop: 'none', background: 'white', padding: '5px' }}
colSpan={columnIds.length + 2}
>
<tr className="osdDiscoverExpandedRow" key={'x' + row._id}>
<td colSpan={columnIds.length + 2}>
<EuiFlexGroup>
<EuiFlexItem grow={false}>
<EuiIcon type="folderOpen" />
Expand Down

0 comments on commit 8960bcf

Please sign in to comment.