breadcrum arrow pos fix

This commit is contained in:
Niklas 2021-08-20 17:09:03 +02:00
parent 5256da3631
commit deed778cc7

View File

@ -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>