refactor: migrate web Tooltip to @makeplane/propel Tooltip (#9697)

* refactor: migrate web Tooltip to @makeplane/propel Tooltip

* style: fix comboButton indentation in dropdowns
This commit is contained in:
Anmol Singh Bhatia
2026-08-28 00:11:19 +05:30
committed by GitHub
parent ad57941526
commit fa4ec2b2e2

View File

@@ -9,6 +9,7 @@ import { useCallback, useEffect, useState } from "react";
import { observer } from "mobx-react";
import { usePathname } from "next/navigation";
// plane imports
import { Tooltip } from "@makeplane/propel/components/tooltip";
import type { EditorRefApi } from "@plane/editor";
import { useHashScroll } from "@plane/hooks";
import { GlobeIcon, LockIcon } from "@plane/propel/icons";
@@ -21,7 +22,7 @@ import { LiteTextEditor } from "@/components/editor/lite-text";
import { CommentReactions } from "../comment-reaction";
import { CommentCardEditForm } from "./edit-form";
import { EmojiReactionButton, EmojiReactionPicker } from "@plane/propel/emoji-reaction";
import { Avatar, Tooltip } from "@plane/ui";
import { Avatar } from "@plane/ui";
import { useMember } from "@/hooks/store/use-member";
export type TCommentCardDisplayProps = {
@@ -123,8 +124,10 @@ export const CommentCardDisplay = observer(function CommentCardDisplay(props: TC
<div className="text-caption-sm-regular text-tertiary">
commented{" "}
<Tooltip
tooltipContent={`${renderFormattedDate(comment.created_at)} at ${renderFormattedTime(comment.created_at)}`}
position="bottom"
label={`${renderFormattedDate(comment.created_at)} at ${renderFormattedTime(comment.created_at)}`}
side="bottom"
layout="single"
delay={200}
>
<span className="text-tertiary">
{calculateTimeAgo(comment.created_at)}