mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-25 08:58:26 +00:00
fix(customHomePage): fix color of elipsis in entity name inside of modules (#14325)
This commit is contained in:
parent
19e99c882c
commit
694c18cfe8
@ -3,13 +3,15 @@ import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { FontColorLevelOptions, FontColorOptions, FontSizeOptions, FontWeightOptions } from '@components/theme/config';
|
||||
import { getColor } from '@components/theme/utils';
|
||||
|
||||
import useMeasureIfTrancated from '@app/shared/useMeasureIfTruncated';
|
||||
|
||||
const EntityTitleContainer = styled.div`
|
||||
const EntityTitleContainer = styled.div<{ $color?: FontColorOptions; $colorLevel?: FontColorLevelOptions }>`
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
max-width: 400px;
|
||||
color: ${(props) => getColor(props.$color, props.$colorLevel, props.theme)};
|
||||
`;
|
||||
|
||||
const PopoverWrapper = styled.div`
|
||||
@ -49,7 +51,7 @@ export default function DisplayName({
|
||||
) : undefined
|
||||
}
|
||||
>
|
||||
<EntityTitleContainer ref={measuredRef} className={className}>
|
||||
<EntityTitleContainer ref={measuredRef} className={className} $color={color} $colorLevel={colorLevel}>
|
||||
<MatchText
|
||||
type="span"
|
||||
color={color}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user