Skip to content

Commit

Permalink
fix(horizontal filter label): show full tooltip with ellipsis (apache…
Browse files Browse the repository at this point in the history
  • Loading branch information
rtexelm authored Oct 23, 2023
1 parent cbbf2be commit e4173d9
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ const HorizontalOverflowFilterControlContainer = styled(

const VerticalFormItem = styled(StyledFormItem)`
.ant-form-item-label {
overflow: visible;
label.ant-form-item-required:not(.ant-form-item-required-mark-optional) {
&::after {
display: none;
Expand All @@ -127,6 +128,7 @@ const HorizontalFormItem = styled(StyledFormItem)`
}
.ant-form-item-label {
overflow: visible;
padding-bottom: 0;
margin-right: ${({ theme }) => theme.gridUnit * 2}px;
label.ant-form-item-required:not(.ant-form-item-required-mark-optional) {
Expand Down Expand Up @@ -200,10 +202,11 @@ const DescriptionToolTip = ({ description }: { description: string }) => (
placement="right"
overlayInnerStyle={{
display: '-webkit-box',
overflow: 'hidden',
WebkitLineClamp: 20,
WebkitLineClamp: 10,
WebkitBoxOrient: 'vertical',
overflow: 'hidden',
textOverflow: 'ellipsis',
whiteSpace: 'normal',
}}
getPopupContainer={trigger => trigger.parentElement as HTMLElement}
>
Expand Down

0 comments on commit e4173d9

Please sign in to comment.