SelectTree: truncate long folder names

This commit is contained in:
Gustav Hansen 2022-06-08 13:26:04 +01:00
parent 66a44454f3
commit b0debcd320

View File

@ -24,7 +24,7 @@ const Option = ({ children, data, selectProps, ...props }) => {
<>
<components.Option {...props}>
<Flex alignItems="start">
<Typography textColor="neutral800">
<Typography textColor="neutral800" ellipsis>
<span style={{ paddingLeft: `${Math.min(depth, maxDisplayDepth) * 10}px` }}>
{children}
</span>