mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fix: breadcrumb project icon improvement (#2764)
This commit is contained in:
parent
a8904bfc48
commit
f0c72bf249
@ -2,7 +2,7 @@ import { useCallback, useState } from "react";
|
|||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import { useRouter } from "next/router";
|
import { useRouter } from "next/router";
|
||||||
import { observer } from "mobx-react-lite";
|
import { observer } from "mobx-react-lite";
|
||||||
import { ArrowLeft, Circle, ExternalLink, Plus } from "lucide-react";
|
import { ArrowLeft, Briefcase, Circle, ExternalLink, Plus } from "lucide-react";
|
||||||
// mobx store
|
// mobx store
|
||||||
import { useMobxStore } from "lib/mobx/store-provider";
|
import { useMobxStore } from "lib/mobx/store-provider";
|
||||||
// components
|
// components
|
||||||
@ -121,17 +121,23 @@ export const ProjectIssuesHeader: React.FC = observer(() => {
|
|||||||
<Breadcrumbs.BreadcrumbItem
|
<Breadcrumbs.BreadcrumbItem
|
||||||
type="text"
|
type="text"
|
||||||
icon={
|
icon={
|
||||||
currentProjectDetails?.emoji ? (
|
currentProjectDetails ? (
|
||||||
<span className="grid h-7 w-7 flex-shrink-0 place-items-center rounded uppercase">
|
currentProjectDetails?.emoji ? (
|
||||||
{renderEmoji(currentProjectDetails.emoji)}
|
<span className="grid h-7 w-7 flex-shrink-0 place-items-center rounded uppercase">
|
||||||
</span>
|
{renderEmoji(currentProjectDetails.emoji)}
|
||||||
) : currentProjectDetails?.icon_prop ? (
|
</span>
|
||||||
<div className="h-7 w-7 flex-shrink-0 grid place-items-center">
|
) : currentProjectDetails?.icon_prop ? (
|
||||||
{renderEmoji(currentProjectDetails.icon_prop)}
|
<div className="h-7 w-7 flex-shrink-0 grid place-items-center">
|
||||||
</div>
|
{renderEmoji(currentProjectDetails.icon_prop)}
|
||||||
|
</div>
|
||||||
|
) : (
|
||||||
|
<span className="grid h-7 w-7 flex-shrink-0 place-items-center rounded bg-gray-700 uppercase text-white">
|
||||||
|
{currentProjectDetails?.name.charAt(0)}
|
||||||
|
</span>
|
||||||
|
)
|
||||||
) : (
|
) : (
|
||||||
<span className="grid h-7 w-7 flex-shrink-0 place-items-center rounded bg-gray-700 uppercase text-white">
|
<span className="grid h-7 w-7 flex-shrink-0 place-items-center rounded uppercase">
|
||||||
{currentProjectDetails?.name.charAt(0)}
|
<Briefcase className="h-4 w-4" />
|
||||||
</span>
|
</span>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user