Skip to content

Commit

Permalink
eui-textTruncate on flyout titles
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksandar Djindjic <[email protected]>
  • Loading branch information
djindjic committed Dec 5, 2022
1 parent c913383 commit 983f7d2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ Object {
justifyContent="flexStart"
>
<EuiFlexItem
className="eui-xScrollWithShadows"
className="eui-textTruncate"
>
<EuiTitle
className="eui-textTruncate"
data-test-subj="alertsDashboardFlyout_header_undefined"
size="m"
>
Expand Down
8 changes: 6 additions & 2 deletions public/components/Flyout/flyouts/alertsDashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@ const alertsDashboard = (payload) => {
headerProps: { hasBorder: true },
header: (
<EuiFlexGroup justifyContent="flexStart" alignItems="center">
<EuiFlexItem className="eui-xScrollWithShadows">
<EuiTitle size={'m'} data-test-subj={`alertsDashboardFlyout_header_${trigger_name}`}>
<EuiFlexItem className="eui-textTruncate">
<EuiTitle
className="eui-textTruncate"
size={'m'}
data-test-subj={`alertsDashboardFlyout_header_${trigger_name}`}
>
<h3>{`Alerts by ${trigger_name}`}</h3>
</EuiTitle>
</EuiFlexItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ export default class FindingFlyout extends Component {
>
<EuiFlyoutHeader hasBorder>
<EuiFlexGroup justifyContent="flexStart" alignItems="center">
<EuiFlexItem className="eui-xScrollWithShadows">
<EuiTitle size={'m'}>
<EuiFlexItem className="eui-textTruncate">
<EuiTitle size={'m'} className="eui-textTruncate">
<h3 id={findingId || `temp_finding_${docId}`}>Document finding</h3>
</EuiTitle>
</EuiFlexItem>
Expand Down

0 comments on commit 983f7d2

Please sign in to comment.