Skip to content

Commit

Permalink
Make title overflow wrap instead of truncation (opensearch-project#3967)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrey Myssak <andreymyssak@gmail.com>
Signed-off-by: Sergey Myssak <sergey.myssak@gmail.com>
  • Loading branch information
SergeyMyssak and andreymyssak committed Jun 14, 2023
1 parent fe3096a commit 1449125
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 54 deletions.

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
@@ -0,0 +1,8 @@
.savedObjectsManagementRelationships__tooltipAnchor {
position: absolute;
}

.savedObjectsManagementRelationships__title {
text-indent: 16px;
overflow-wrap: break-word;
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
* under the License.
*/

import './relationships.scss';
import React, { Component } from 'react';
import {
EuiTitle,
Expand Down Expand Up @@ -337,16 +338,21 @@ export class Relationships extends Component<RelationshipsProps, RelationshipsSt
<EuiFlyout onClose={close}>
<EuiFlyoutHeader hasBorder>
<EuiTitle size="m">
<h2 className="eui-textTruncate">
<EuiToolTip position="top" content={getSavedObjectLabel(savedObject.type)}>
<h2>
<EuiToolTip
position="top"
content={getSavedObjectLabel(savedObject.type)}
anchorClassName="savedObjectsManagementRelationships__tooltipAnchor"
>
<EuiIcon
aria-label={getSavedObjectLabel(savedObject.type)}
size="m"
type={savedObject.meta.icon || 'apps'}
/>
</EuiToolTip>
&nbsp;&nbsp;
{savedObject.meta.title || getDefaultTitle(savedObject)}
<p className="savedObjectsManagementRelationships__title">
&nbsp;&nbsp;{savedObject.meta.title || getDefaultTitle(savedObject)}
</p>
</h2>
</EuiTitle>
</EuiFlyoutHeader>
Expand Down

0 comments on commit 1449125

Please sign in to comment.