breadcrum cursor seperator

This commit is contained in:
Djeeberjr 2021-09-29 22:20:29 +02:00
parent f38a34eb2a
commit 9664eb07b8

View File

@ -30,7 +30,7 @@ const Breadcrum: React.FC<Props> = ({path,onDirClick}) => {
</Link> </Link>
</div> </div>
<div className="breadcrum-item"> <div className="breadcrum-item">
<BreadcrumImage className="h-5 w-auto text-gray-400" /> <BreadcrumImage className="h-5 w-auto text-gray-400 cursor-default" />
<li> <li>
<a className={!keyParts.length?"text-blue-500":""} onClick={()=>{ <a className={!keyParts.length?"text-blue-500":""} onClick={()=>{
onDirClick?.(new ObjID(path.bucket,"/")) onDirClick?.(new ObjID(path.bucket,"/"))
@ -43,7 +43,7 @@ const Breadcrum: React.FC<Props> = ({path,onDirClick}) => {
{keyParts.map((e,i,arr)=>{ {keyParts.map((e,i,arr)=>{
const last = i == arr.length - 1 const last = i == arr.length - 1
return <div key={e} className="breadcrum-item"> return <div key={e} className="breadcrum-item">
<BreadcrumImage className="h-5 w-auto text-gray-400" /> <BreadcrumImage className="h-5 w-auto text-gray-400 cursor-default" />
<li> <li>
<a <a
className={`${last?"text-blue-500":""}`} className={`${last?"text-blue-500":""}`}