mirror of
https://github.com/strapi/strapi.git
synced 2025-07-30 20:39:05 +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}>
|
<components.Option {...props}>
|
||||||
<Flex alignItems="start">
|
<Flex alignItems="start">
|
||||||
<Typography textColor="neutral800">
|
<Typography textColor="neutral800" ellipsis>
|
||||||
<span style={{ paddingLeft: `${Math.min(depth, maxDisplayDepth) * 10}px` }}>
|
<span style={{ paddingLeft: `${Math.min(depth, maxDisplayDepth) * 10}px` }}>
|
||||||
{children}
|
{children}
|
||||||
</span>
|
</span>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user