Skip to content

Commit

Permalink
Make alerts table row to fit user profile avatars by default (#170505)
Browse files Browse the repository at this point in the history
## Summary

Allow alerts table to render user avatars without cutting them off.

Broken:
<img width="1590" alt="Screenshot 2023-11-03 at 12 12 05"
src="https://github.com/elastic/kibana/assets/2700761/319e6391-4e09-4350-87cc-391d18d15927">

Fixed:
<img width="1600" alt="Screenshot 2023-11-03 at 12 11 52"
src="https://github.com/elastic/kibana/assets/2700761/74258e7a-c7bb-4caf-8d90-367285213165">

Main ticket elastic/security-team#2504
  • Loading branch information
e40pud authored Nov 3, 2023
1 parent 34862d7 commit 89ec60a
Showing 1 changed file with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,14 +197,11 @@ export const AlertsTableComponent: FC<DetectionEngineAlertTableProps> = ({
[isEventRenderedView]
);

const rowHeightsOptions: EuiDataGridRowHeightsOptions | undefined = useMemo(() => {
if (isEventRenderedView) {
return {
defaultHeight: 'auto',
};
}
return undefined;
}, [isEventRenderedView]);
const rowHeightsOptions: EuiDataGridRowHeightsOptions = useMemo(() => {
return {
defaultHeight: 'auto',
};
}, []);

const alertColumns = useMemo(
() => (columns.length ? columns : getColumns(license)),
Expand Down

0 comments on commit 89ec60a

Please sign in to comment.