Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

[WEB-872] chore: add tooltip to peek overview header icons. (#4229)

Prateek Shourya38daf7236147
diff --git a/web/components/issues/peek-overview/header.tsx b/web/components/issues/peek-overview/header.tsx
index 70c57c3f32..e2ad668ba1 100644
--- a/web/components/issues/peek-overview/header.tsx
+++ b/web/components/issues/peek-overview/header.tsx
@@ -112,22 +112,28 @@ export const IssuePeekOverviewHeader: FC<PeekOverviewHeaderProps> = observer((pr
}`}
>
<div className="flex items-center gap-4">
- <button onClick={removeRoutePeekId}>
- <MoveRight className="h-4 w-4 text-custom-text-300 hover:text-custom-text-200" />
- </button>
+ <Tooltip tooltipContent="Close the peek view" isMobile={isMobile}>
+ <button onClick={removeRoutePeekId}>
+ <MoveRight className="h-4 w-4 text-custom-text-300 hover:text-custom-text-200" />
+ </button>
+ </Tooltip>
- <Link href={`/${issueLink}`} onClick={() => removeRoutePeekId()}>
- <MoveDiagonal className="h-4 w-4 text-custom-text-300 hover:text-custom-text-200" />
- </Link>
+ <Tooltip tooltipContent="Open issue in full screen" isMobile={isMobile}>
+ <Link href={`/${issueLink}`} onClick={() => removeRoutePeekId()}>
+ <MoveDiagonal className="h-4 w-4 text-custom-text-300 hover:text-custom-text-200" />
+ </Link>
+ </Tooltip>
{currentMode && (
<div className="flex flex-shrink-0 items-center gap-2">
<CustomSelect
value={currentMode}
onChange={(val: any) => setPeekMode(val)}
customButton={
- <button type="button" className="">
- <currentMode.icon className="h-4 w-4 text-custom-text-300 hover:text-custom-text-200" />
- </button>
+ <Tooltip tooltipContent="Toggle peek view layout" isMobile={isMobile}>
+ <button type="button" className="">
+ <currentMode.icon className="h-4 w-4 text-custom-text-300 hover:text-custom-text-200" />
+ </button>
+ </Tooltip>
}
>
{PEEK_OPTIONS.map((mode) => (