π₯π₯π₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.
TypeScript boardsbug-trackerdjangodockerganttissue-trackerjirajira-alternativekanbanlinearpostgresqlproduct-managementproject-managementproject-planningpythonreactredistypesciptvitework-management
fix: added tooltips for truncated favorites (#6330)
Vamsi Krishna906d095a1ee2
diff --git a/web/core/components/workspace/sidebar/favorites/favorite-folder.tsx b/web/core/components/workspace/sidebar/favorites/favorite-folder.tsxindex 9c0c4c54bb..289a5ec6a3 100644--- a/web/core/components/workspace/sidebar/favorites/favorite-folder.tsx+++ b/web/core/components/workspace/sidebar/favorites/favorite-folder.tsx@@ -188,12 +188,7 @@ export const FavoriteFolder: React.FC<Props> = (props) => {</div>) : (<>- <Tooltip- tooltipContent={`${favorite.name}`}- position="right"- disabled={!isSidebarCollapsed}- isMobile={isMobile}- >+ <Tooltip tooltipContent={`${favorite.name}`} position="right" className="ml-8" isMobile={isMobile}><div className="flex-grow flex truncate"><Disclosure.Buttonas="button"diff --git a/web/core/components/workspace/sidebar/favorites/favorite-items/common/favorite-item-title.tsx b/web/core/components/workspace/sidebar/favorites/favorite-items/common/favorite-item-title.tsxindex 0a0ed7c114..847c45f7a0 100644--- a/web/core/components/workspace/sidebar/favorites/favorite-items/common/favorite-item-title.tsx+++ b/web/core/components/workspace/sidebar/favorites/favorite-items/common/favorite-item-title.tsx@@ -3,6 +3,7 @@ import React, { FC } from "react";import { observer } from "mobx-react";import Link from "next/link";import { Tooltip } from "@plane/ui";+import { cn } from "@plane/utils";import { useAppTheme } from "@/hooks/store";import { usePlatformOS } from "@/hooks/use-platform-os";@@ -28,7 +29,7 @@ export const FavoriteItemTitle: FC<Props> = observer((props) => {};return (- <Tooltip tooltipContent={title} isMobile={isMobile} disabled={!isSidebarCollapsed} position="right">+ <Tooltip tooltipContent={title} isMobile={isMobile} position="right" className={cn(!isSidebarCollapsed && "ml-8")}><Link href={href} className={isSidebarCollapsed ? collapsedClass : linkClass} draggable onClick={handleOnClick}><span className="flex items-center justify-center size-5">{icon}</span>{!isSidebarCollapsed && <span className="text-sm leading-5 font-medium flex-1 truncate">{title}</span>}