Apply text overflow style for breadcrumb items
This commit is contained in:
@@ -41,7 +41,15 @@ const Breadcrumb = ({ items }: BreadcrumbProps) => {
|
|||||||
>
|
>
|
||||||
<Icon size={0.8} path={mdiChevronRight} />
|
<Icon size={0.8} path={mdiChevronRight} />
|
||||||
<NextLink passHref href={item.href}>
|
<NextLink passHref href={item.href}>
|
||||||
<NavLink>{item.label}</NavLink>
|
<NavLink
|
||||||
|
sx={{
|
||||||
|
overflow: 'hidden',
|
||||||
|
whiteSpace: 'nowrap',
|
||||||
|
textOverflow: 'ellipsis',
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{item.label}
|
||||||
|
</NavLink>
|
||||||
</NextLink>
|
</NextLink>
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user