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