mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-07 01:09:54 +08:00
fix: input placeholder display error when the width is not enough
This commit is contained in:
@@ -63,6 +63,10 @@ const StyledInputElement = styled('input')(({ theme }) => ({
|
|||||||
lineHeight: '1.5',
|
lineHeight: '1.5',
|
||||||
color: `${theme.affine.palette.secondaryText}`,
|
color: `${theme.affine.palette.secondaryText}`,
|
||||||
flexGrow: 1,
|
flexGrow: 1,
|
||||||
|
maxWidth: '100%',
|
||||||
|
overflow: 'hidden',
|
||||||
|
textOverflow: 'ellipsis',
|
||||||
|
whiteSpace: 'nowrap',
|
||||||
'&::placeholder': {
|
'&::placeholder': {
|
||||||
color: `${theme.affine.palette.borderColor}`,
|
color: `${theme.affine.palette.borderColor}`,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user