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