Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ const indexActionsCellStyles = css({
minWidth: spacing[5],
});

const indexActionsCellContainerStyles = css({
display: 'flex',
justifyContent: 'flex-end',
});

const tableHeaderStyles = css({
borderWidth: 0,
borderBottomWidth: 3,
Expand Down Expand Up @@ -78,6 +83,7 @@ type IndexInfo = {
key?: string;
'data-testid': string;
children: React.ReactNode;
className?: string;
}[];
actions?: React.ReactNode;
details?: React.ReactNode;
Expand Down Expand Up @@ -185,7 +191,7 @@ export function IndexesTable<Column extends string>({
<Cell
key={field.key ?? `${info.key}-${index}`}
data-testid={`${dataTestId}-${field['data-testid']}`}
className={cellStyles}
className={cx(cellStyles, field.className)}
>
{field.children}
</Cell>
Expand All @@ -195,7 +201,7 @@ export function IndexesTable<Column extends string>({
{canModifyIndex && (
<Cell
data-testid={`${dataTestId}-actions-field`}
className={cellStyles}
className={cx(cellStyles, indexActionsCellContainerStyles)}
>
{info.actions && (
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,16 @@ export const SearchIndexesTable: React.FunctionComponent<
fields: [
{
'data-testid': 'name-field',
className: css({
width: '30%',
}),
children: index.name,
},
{
'data-testid': 'status-field',
className: css({
width: '20%',
}),
children: (
<IndexStatus
status={index.status}
Expand Down