setHovered(true)}
- onMouseLeave={() => setHovered(false)}
>
setActionsActive(true)}
- onBlurCapture={() => setActionsActive(false)}
>
- )}
);
diff --git a/components/SessionSidebar-rows.tsx b/components/SessionSidebar-rows.tsx
index f9fae3c56..338023b65 100644
--- a/components/SessionSidebar-rows.tsx
+++ b/components/SessionSidebar-rows.tsx
@@ -29,19 +29,11 @@ import {
/**
* Right-edge status column shared by project headers and session rows.
*
- * Desktop session rows lay out `[status slot][gap][meta]` right-aligned at
- * `rowRight - 8`, project headers `[activity slot][gap][actions][gap][toggle]`
- * at `rowRight - 6`. Reserving the same total width in both (`8 + 46 + 2 + 6`
- * vs `6 + 2 + 24 + 2 + 22 + 6`) centres every indicator — running ring, unread
- * dot, project activity dot — on `rowRight - 62`, so it never moves.
- *
- * The session row's indicator must live outside the meta layer: that layer
- * fades out when the hover/focus action button takes over, and a dot rendered
- * inside the actions layer would jump right by the width difference.
+ * Keep the session indicator outside the timestamp and action controls so it
+ * stays visible while the menu is open.
*/
const SIDEBAR_STATUS_SLOT = 12;
const SIDEBAR_STATUS_GAP = 2;
-const SIDEBAR_TRAILING_META_WIDTH = 46;
interface ProjectRowProps {
project: ManagedProject;
@@ -113,7 +105,6 @@ function ProjectRow({
}: ProjectRowProps) {
const { t } = useI18n();
const [hovered, setHovered] = useState(false);
- const [focusWithin, setFocusWithin] = useState(false);
const [showAllSessions, setShowAllSessions] = useState(false);
const [actionMenuOpen, setActionMenuOpen] = useState(false);
const [confirmRemove, setConfirmRemove] = useState(false);
@@ -145,7 +136,6 @@ function ProjectRow({
const visibleRoots = hiddenCount > 0 && !showAllSessions
? tree.slice(0, MAX_PROJECT_SESSIONS)
: tree;
- const showActions = hovered || focusWithin || actionMenuOpen;
return (
@@ -173,10 +163,6 @@ function ProjectRow({
onDragEnd={() => onDragPathChange(null)}
onMouseEnter={() => setHovered(true)}
onMouseLeave={() => setHovered(false)}
- onFocus={() => setFocusWithin(true)}
- onBlur={(e) => {
- if (!e.currentTarget.contains(e.relatedTarget as Node | null)) setFocusWithin(false);
- }}
onKeyDown={(event) => {
if (event.key === "Escape" && actionMenuOpen) {
event.stopPropagation();
@@ -350,7 +336,6 @@ function ProjectRow({
)}
(null);
const title = session.name || session.firstMessage.slice(0, 50) || session.id.slice(0, 12);
const relativeTime = formatRelativeTime(session.modified, locale, relativeTimeNow);
- const showActions = hovered || focusWithin || actionMenuOpen;
const rowBackground = isSelected
? "color-mix(in srgb, var(--bg-selected) 70%, transparent)"
: hovered ? "var(--bg-hover)" : "transparent";
@@ -974,14 +957,9 @@ const SessionItem = memo(function SessionItem({
<>
setHovered(true)}
onMouseLeave={() => setHovered(false)}
- onFocus={() => setFocusWithin(true)}
- onBlur={(event) => {
- if (!event.currentTarget.contains(event.relatedTarget as Node | null)) setFocusWithin(false);
- }}
onKeyDown={(event) => {
if ((confirmDelete || actionMenuOpen) && event.key === "Escape") {
event.stopPropagation();
@@ -1037,11 +1015,11 @@ const SessionItem = memo(function SessionItem({
{isRunning ?
:
}
)}
-
-
+
+
{relativeTime && {relativeTime}}
-
+