mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-02 03:02:19 +08:00
fix(ReadPretty): apply conditional flex styling based on ellipsis prop (#7094)
This commit is contained in:
parent
544f561b26
commit
94e40c5c7b
@ -56,12 +56,13 @@ ReadPretty.Input = (props: InputReadPrettyProps) => {
|
||||
return props.value && typeof props.value === 'object' ? JSON.stringify(props.value) : compile(props.value);
|
||||
}, [props.value]);
|
||||
|
||||
const flexStyle = props.ellipsis ? { display: 'flex', alignItems: 'center' } : {};
|
||||
|
||||
return (
|
||||
<div
|
||||
className={cls(prefixCls, props.className)}
|
||||
style={{
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
...flexStyle,
|
||||
overflowWrap: 'break-word',
|
||||
whiteSpace: 'normal',
|
||||
...props.style,
|
||||
|
Loading…
x
Reference in New Issue
Block a user