breadcrum arrow pos fix
This commit is contained in:
parent
5256da3631
commit
deed778cc7
@ -21,18 +21,18 @@ const Breadcrum: React.FC<Props> = (props) => {
|
|||||||
</li>
|
</li>
|
||||||
{parts.map((e,i,arr)=>{
|
{parts.map((e,i,arr)=>{
|
||||||
const last = i == arr.length - 1
|
const last = i == arr.length - 1
|
||||||
return (<>
|
return <div key={e} className="inline-flex items-center">
|
||||||
<BreadcrumImage />
|
<BreadcrumImage />
|
||||||
<li key={e} className="inline-flex items-center">
|
<li>
|
||||||
<a
|
<a
|
||||||
className={last?"text-blue-500":""}
|
className={`${last?"text-blue-500":""}`}
|
||||||
onClick={()=>{
|
onClick={()=>{
|
||||||
if (!last){
|
if (!last){
|
||||||
props.onDirClick?.("/"+arr.slice(0,i-1).join("/"))
|
props.onDirClick?.("/"+arr.slice(0,i-1).join("/"))
|
||||||
}
|
}
|
||||||
}}>{e}</a>
|
}}>{e}</a>
|
||||||
</li>
|
</li>
|
||||||
</>)
|
</div>
|
||||||
})}
|
})}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user