File tree Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ const TableResult = React.memo((props: Props) => {
77
77
< EuiToolTip
78
78
position = "bottom"
79
79
title = { title }
80
+ className = "text-multiline-ellipsis"
80
81
anchorClassName = { cx ( 'tooltip' ) }
81
82
content = { formatLongName ( value . toString ( ) ) }
82
83
>
Original file line number Diff line number Diff line change @@ -85,6 +85,12 @@ html {
85
85
display : inline-block !important ;
86
86
}
87
87
88
+ // The style applies to the last div element in the tooltip,
89
+ // which is the one containing the text
90
+ .euiToolTipPopover.text-multiline-ellipsis > div :last-child {
91
+ @include eui .multiline-ellipsis ($line-count : 7 , $line-height : 1.5rem );
92
+ }
93
+
88
94
.cell {
89
95
position : relative ;
90
96
}
Original file line number Diff line number Diff line change @@ -86,3 +86,12 @@ $euiBreakpointKeys: map-keys($euiBreakpoints);
86
86
$alpha : 1 - $factor ;
87
87
color : rgba ($color , $alpha );
88
88
}
89
+
90
+ @mixin multiline-ellipsis ($line-count , $line-height ) {
91
+ display : -webkit-box ;
92
+ -webkit-box-orient : vertical ;
93
+ -webkit-line-clamp : $line-count ;
94
+ line-height : $line-height ;
95
+ text-overflow : ellipsis ;
96
+ overflow : hidden ;
97
+ }
You can’t perform that action at this time.
0 commit comments