diff --git a/frontend/src/components/Sidebar/ActiveWorkspaces/ThreadContainer/ThreadItem/index.jsx b/frontend/src/components/Sidebar/ActiveWorkspaces/ThreadContainer/ThreadItem/index.jsx
index c25e4a6176a..d8230706f23 100644
--- a/frontend/src/components/Sidebar/ActiveWorkspaces/ThreadContainer/ThreadItem/index.jsx
+++ b/frontend/src/components/Sidebar/ActiveWorkspaces/ThreadContainer/ThreadItem/index.jsx
@@ -10,6 +10,8 @@ import {
} from "@phosphor-icons/react";
import { useEffect, useRef, useState } from "react";
import { useParams } from "react-router-dom";
+import { Tooltip } from "react-tooltip";
+import { createPortal } from "react-dom";
const THREAD_CALLOUT_DETAIL_WIDTH = 26;
export default function ThreadItem({
@@ -31,123 +33,140 @@ export default function ThreadItem({
: paths.workspace.thread(slug, thread.slug);
return (
-
- {/* Curved line Element and leader if required */}
+ <>
- {/* Downstroke border for next item */}
- {hasNext && (
+ className="w-full relative flex h-[38px] items-center border-none rounded-lg"
+ role="listitem"
+ >
+ {/* Curved line Element and leader if required */}
- )}
+ {/* Downstroke border for next item */}
+ {hasNext && (
+
+ )}
- {/* Curved line inline placeholder for spacing - not visible */}
-
-
- {thread.deleted ? (
-
-
-
- deleted thread
-
+ {/* Curved line inline placeholder for spacing - not visible */}
+
+
+ {thread.deleted ? (
+
+
+ {ctrlPressed && (
+
+ )}
- {ctrlPressed && (
-
- )}
-
- ) : (
-
-
- {thread.name}
-
-
- )}
- {!!thread.slug && !thread.deleted && (
-
- {" "}
- {/* Added flex and items-center */}
- {ctrlPressed ? (
-
- ) : (
-
+ {thread.name}
+
+
+ )}
+ {!!thread.slug && !thread.deleted && (
+
+ {" "}
+ {/* Added flex and items-center */}
+ {ctrlPressed ? (
-
- )}
- {showOptions && (
-
setShowOptions(false)}
- currentThreadSlug={threadSlug}
- />
- )}
-
- )}
+ ) : (
+
+
+
+ )}
+ {showOptions && (
+
setShowOptions(false)}
+ currentThreadSlug={threadSlug}
+ />
+ )}
+
+ )}
+
-
+ {createPortal(
+
,
+ document.body
+ )}
+ >
);
}
diff --git a/frontend/src/components/Sidebar/ActiveWorkspaces/index.jsx b/frontend/src/components/Sidebar/ActiveWorkspaces/index.jsx
index 545bd6c4eb9..58dc8fcd489 100644
--- a/frontend/src/components/Sidebar/ActiveWorkspaces/index.jsx
+++ b/frontend/src/components/Sidebar/ActiveWorkspaces/index.jsx
@@ -13,6 +13,8 @@ import ThreadContainer from "./ThreadContainer";
import { useMatch } from "react-router-dom";
import { DragDropContext, Droppable, Draggable } from "react-beautiful-dnd";
import showToast from "@/utils/toast";
+import { Tooltip } from "react-tooltip";
+import { createPortal } from "react-dom";
export default function ActiveWorkspaces() {
const navigate = useNavigate();
@@ -129,6 +131,8 @@ export default function ActiveWorkspaces() {
)}
+ {createPortal(
+ ,
+ document.body
+ )}
);
}