Skip to content

Commit

Permalink
fix job messages table responsiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
rbrtj committed Dec 17, 2024
1 parent a66c139 commit d22a1b7
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,23 +66,24 @@ export const JobMessages: FC<JobMessagesProps> = ({
''
),
render: (message: JobMessage) => <JobIcon message={message} />,
width: `${euiTheme.size.l}`,
width: `${euiTheme.size.xl}`,
align: 'center',
},
{
field: 'timestamp',
name: i18n.translate('xpack.ml.jobMessages.timeLabel', {
defaultMessage: 'Time',
}),
render: timeFormatter,
width: '120px',
width: '25%',
sortable: true,
},
{
field: 'message',
name: i18n.translate('xpack.ml.jobMessages.messageLabel', {
defaultMessage: 'Message',
}),
width: '50%',
width: '40%',
},
];

Expand All @@ -92,7 +93,7 @@ export const JobMessages: FC<JobMessagesProps> = ({
name: i18n.translate('xpack.ml.jobMessages.nodeLabel', {
defaultMessage: 'Node',
}),
width: '150px',
width: '15%',
});
}

Expand All @@ -101,7 +102,7 @@ export const JobMessages: FC<JobMessagesProps> = ({
name: i18n.translate('xpack.ml.jobMessages.actionsLabel', {
defaultMessage: 'Actions',
}),
width: '10%',
width: '20%',
actions: [
{
render: (message: JobMessage) => {
Expand Down Expand Up @@ -131,7 +132,7 @@ export const JobMessages: FC<JobMessagesProps> = ({
}

return cols;
}, [showNodeInfo, refreshMessage, actionHandler, euiTheme]);
}, [refreshMessage, euiTheme.size.xl, showNodeInfo, actionHandler]);

const defaultSorting = {
sort: {
Expand Down

0 comments on commit d22a1b7

Please sign in to comment.