Skip to content

The open-source app everyone uses to manage agents at work

Set inbox selection to fixed light gray

dotta57357991e450
diff --git a/ui/src/components/SwipeToArchive.test.tsx b/ui/src/components/SwipeToArchive.test.tsx
index 4cdf92db00..4d1c8f8676 100644
--- a/ui/src/components/SwipeToArchive.test.tsx
+++ b/ui/src/components/SwipeToArchive.test.tsx
@@ -136,7 +136,7 @@ describe("SwipeToArchive", () => {
const surface = container.querySelector("[data-inbox-row-surface]") as HTMLDivElement | null;
expect(surface).not.toBeNull();
- expect(surface?.style.backgroundColor).toBe("hsl(var(--muted))");
+ expect(surface?.style.backgroundColor).toBe("rgb(243, 244, 246)");
expect(surface?.style.boxShadow).toBe("");
act(() => {
diff --git a/ui/src/components/SwipeToArchive.tsx b/ui/src/components/SwipeToArchive.tsx
index 4b0f304c95..5bddcab83f 100644
--- a/ui/src/components/SwipeToArchive.tsx
+++ b/ui/src/components/SwipeToArchive.tsx
@@ -13,6 +13,7 @@ interface SwipeToArchiveProps {
const COMMIT_THRESHOLD = 0.32;
const MAX_SWIPE = 0.88;
const COMMIT_DELAY_MS = 140;
+const SELECTED_ROW_BACKGROUND = "#f3f4f6";
export function SwipeToArchive({
children,
@@ -155,7 +156,7 @@ export function SwipeToArchive({
style={{
transform: `translate3d(${offsetX}px, 0, 0)`,
transition: isDragging ? "none" : "transform 180ms ease-out",
- backgroundColor: selected ? "hsl(var(--muted))" : undefined,
+ backgroundColor: selected ? SELECTED_ROW_BACKGROUND : undefined,
}}
>
{children}