mirror of
https://github.com/strapi/strapi.git
synced 2025-07-30 04:20:34 +00:00
SelectTree: truncate long folder names
This commit is contained in:
parent
66a44454f3
commit
b0debcd320
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user