File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed
Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -14,18 +14,29 @@ interface BreadCrumbsProps {
1414
1515const BreadCrumbs : React . FC < BreadCrumbsProps > = ( { data } ) => {
1616 return (
17- < div className = "sticky top-[70px] lg:top-[85px] z-1 bg-secondaryOrange px-6 py-2 lg:px-10 border-b " >
17+ < div className = "border-b sticky top-[70px] z-1 bg-secondaryOrange px-6 py-2 lg:top-[85px] lg:px-10 " >
1818 < Breadcrumb className = "mx-1" >
19- < BreadcrumbList className = '' >
19+ < BreadcrumbList className = "" >
2020 { data . map ( ( item , index ) => (
2121 < React . Fragment key = { index } >
2222 { index === data . length - 1 ? (
2323 < BreadcrumbItem >
24- < BreadcrumbPage className = 'font-bold' > { item . label } </ BreadcrumbPage >
24+ < BreadcrumbPage
25+ title = { item . label }
26+ className = "max-w-[20ch] truncate font-bold lg:max-w-[40ch]"
27+ >
28+ { item . label }
29+ </ BreadcrumbPage >
2530 </ BreadcrumbItem >
2631 ) : (
2732 < BreadcrumbItem >
28- < BreadcrumbLink href = { item . href } className = ' font-bold ' > { item . label } </ BreadcrumbLink >
33+ < BreadcrumbLink
34+ href = { item . href }
35+ title = { item . label }
36+ className = "max-w-[20ch] truncate font-bold lg:max-w-[40ch]"
37+ >
38+ { item . label }
39+ </ BreadcrumbLink >
2940 </ BreadcrumbItem >
3041 ) }
3142 { index < data . length - 1 && < BreadcrumbSeparator /> }
You can’t perform that action at this time.
0 commit comments