NestedFolderPicker: Truncate overflowing text, fix selected state (#71444)

* truncate overflowing text, fix selected state

* ensure search state is always clean when opening the overlay
This commit is contained in:
Ashley Harrison
2023-07-12 14:55:27 +01:00
committed by GitHub
parent 7e4e743a42
commit ad3d7d5e94
3 changed files with 25 additions and 20 deletions

View File

@ -205,13 +205,14 @@ export const getButtonStyles = (props: StyleProps) => {
: css({
marginRight: theme.spacing(padding / 2),
}),
content: css`
display: flex;
flex-direction: row;
align-items: center;
white-space: nowrap;
height: 100%;
`,
content: css({
display: 'flex',
flexDirection: 'row',
alignItems: 'center',
whiteSpace: 'nowrap',
overflow: 'hidden',
height: '100%',
}),
};
};