Added tooltip on overflowing texts (#771)
* Ok * Fixes * Fix according to PR * Fix lint --------- Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
@ -72,7 +72,7 @@ export function NumberEditableField({
|
||||
/>
|
||||
}
|
||||
displayModeContent={internalValue}
|
||||
isDisplayModeContentEmpty={!(internalValue !== '')}
|
||||
isDisplayModeContentEmpty={!(internalValue !== '' && internalValue)}
|
||||
/>
|
||||
</RecoilScope>
|
||||
);
|
||||
|
||||
@ -5,6 +5,8 @@ import { FieldContext } from '@/ui/editable-field/states/FieldContext';
|
||||
import { InplaceInputText } from '@/ui/inplace-input/components/InplaceInputText';
|
||||
import { RecoilScope } from '@/ui/recoil-scope/components/RecoilScope';
|
||||
|
||||
import { OverflowingTextWithTooltip } from '../../../tooltip/OverflowingTextWithTooltip';
|
||||
|
||||
type OwnProps = {
|
||||
icon?: React.ReactNode;
|
||||
placeholder?: string;
|
||||
@ -54,7 +56,7 @@ export function TextEditableField({
|
||||
}}
|
||||
/>
|
||||
}
|
||||
displayModeContent={internalValue}
|
||||
displayModeContent={<OverflowingTextWithTooltip text={internalValue} />}
|
||||
isDisplayModeContentEmpty={!(internalValue !== '')}
|
||||
/>
|
||||
</RecoilScope>
|
||||
|
||||
Reference in New Issue
Block a user