diff --git a/webui/src/components/SidebarSelectionHighlight.tsx b/webui/src/components/SidebarSelectionHighlight.tsx index fb0b4dbea..6b89c34d2 100644 --- a/webui/src/components/SidebarSelectionHighlight.tsx +++ b/webui/src/components/SidebarSelectionHighlight.tsx @@ -62,19 +62,14 @@ export function SidebarSelectionHighlight({ const firstPosition = !positionedRef.current; if (firstPosition) highlight.style.transitionProperty = "none"; - // Align the paint origin and destination to layout pixels. A fractional - // origin rasterized before translation can leave seams beside row backgrounds. - const snap = Math.round; - const originLeft = snap(containerRect.left); - const originTop = snap(containerRect.top); - const targetLeft = snap(targetRect.left); - const targetTop = snap(targetRect.top); - highlight.style.left = `${originLeft - containerRect.left}px`; - highlight.style.top = `${originTop - containerRect.top}px`; - highlight.style.width = `${snap(targetRect.right) - targetLeft}px`; - highlight.style.height = `${snap(targetRect.bottom) - targetTop}px`; - highlight.style.transform = `translate3d(${targetLeft - originLeft}px, ${ - targetTop - originTop + // Preserve fractional layout coordinates so the highlight shares the + // target's edges, including where it meets an adjacent hover background. + highlight.style.left = "0px"; + highlight.style.top = "0px"; + highlight.style.width = `${targetRect.width}px`; + highlight.style.height = `${targetRect.height}px`; + highlight.style.transform = `translate3d(${targetRect.left - containerRect.left}px, ${ + targetRect.top - containerRect.top }px, 0)`; highlight.style.opacity = "1"; positionedRef.current = true; diff --git a/webui/src/components/thread/WorkspaceControls.tsx b/webui/src/components/thread/WorkspaceControls.tsx index 561c5a2b4..7b9bde031 100644 --- a/webui/src/components/thread/WorkspaceControls.tsx +++ b/webui/src/components/thread/WorkspaceControls.tsx @@ -154,16 +154,6 @@ function WorkspacePickerPath({ path }: { path: string }) { ); } -function WorkspaceSavedProjectLabel({ path }: { path: string }) { - const parts = workspacePathCompletionQuery(path); - return ( - - {projectNameFromPath(path)} - {parts?.query && {parts.path}} - - ); -} - export function WorkspaceProjectPicker({ isHero, disabled, scope, defaultScope, controls, error, onLoadProjects, onResolveProject, onFavoriteProject, onBrowseDirectories, layoutAnchor, onChange }: { layoutAnchor?: HTMLElement | null; isHero: boolean; @@ -645,11 +635,10 @@ export function WorkspaceProjectPicker({ isHero, disabled, scope, defaultScope, onPointerEnter={() => setHoveredLocation(project.path)} onPointerLeave={() => setHoveredLocation(null)}> {favoriteButton(project.path)} @@ -659,7 +648,7 @@ export function WorkspaceProjectPicker({ isHero, disabled, scope, defaultScope, ))} } -