fix: input placeholder display error when the width is not enough

This commit is contained in:
qishaoxuan
2022-07-29 10:21:18 +08:00
parent 0cce817813
commit 56998d07a1

View File

@@ -63,6 +63,10 @@ const StyledInputElement = styled('input')(({ theme }) => ({
lineHeight: '1.5',
color: `${theme.affine.palette.secondaryText}`,
flexGrow: 1,
maxWidth: '100%',
overflow: 'hidden',
textOverflow: 'ellipsis',
whiteSpace: 'nowrap',
'&::placeholder': {
color: `${theme.affine.palette.borderColor}`,
},