Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

fix(desktop): drop chevron from home project switcher

vastsacd6c21c94180
diff --git a/apps/desktop/src/components/HomeProjectSwitcher.tsx b/apps/desktop/src/components/HomeProjectSwitcher.tsx
index 725bd2a7b..f2f06c7c4 100644
--- a/apps/desktop/src/components/HomeProjectSwitcher.tsx
+++ b/apps/desktop/src/components/HomeProjectSwitcher.tsx
@@ -18,7 +18,6 @@ import { useAppStore } from "../stores/app-store";
import {
IconBranch,
IconCheck,
- IconChevronDown,
IconChevronLeft,
IconFolder,
IconNewProject,
@@ -254,11 +253,6 @@ export function HomeProjectSwitcher({
}}
>
<span className="project-underline-name">{name}</span>
- <IconChevronDown
- size={16}
- className="project-underline-chevron"
- aria-hidden
- />
</button>
)}
>
diff --git a/apps/desktop/src/styles/chat-shell.css b/apps/desktop/src/styles/chat-shell.css
index 219eb157e..01550582d 100644
--- a/apps/desktop/src/styles/chat-shell.css
+++ b/apps/desktop/src/styles/chat-shell.css
@@ -781,7 +781,6 @@
.empty-hero .project-underline {
display: inline-flex;
align-items: baseline;
- gap: 0.2em;
max-width: 100%;
padding: 0;
border: 0;
@@ -800,26 +799,17 @@
text-decoration-thickness: 1px;
text-underline-offset: 4px;
text-decoration-color: var(--ds-text-faint);
+ transition: text-decoration-color 150ms ease;
}
-.empty-hero .project-underline-chevron {
- flex: none;
- align-self: center;
- color: var(--ds-text-faint);
- transition: transform 150ms ease, color 150ms ease;
-}
-
-.empty-hero .project-underline:hover .project-underline-chevron,
-.empty-hero .project-underline[aria-expanded="true"] .project-underline-chevron {
- color: var(--ds-text-secondary);
-}
-
-.empty-hero .project-underline[aria-expanded="true"] .project-underline-chevron {
- transform: rotate(180deg);
+.empty-hero .project-underline:hover .project-underline-name,
+.empty-hero .project-underline[aria-expanded="true"] .project-underline-name {
+ text-decoration-style: solid;
+ text-decoration-color: currentColor;
}
@media (prefers-reduced-motion: reduce) {
- .empty-hero .project-underline-chevron {
+ .empty-hero .project-underline-name {
transition: none;
}
}
diff --git a/apps/desktop/test/home-project-switcher.test.mjs b/apps/desktop/test/home-project-switcher.test.mjs
index 1509deb9b..a2bcdd0ae 100644
--- a/apps/desktop/test/home-project-switcher.test.mjs
+++ b/apps/desktop/test/home-project-switcher.test.mjs
@@ -59,17 +59,18 @@ test("home project switcher is a fixed portaled menu that stays inline in the he
);
});
-test("home project switcher trigger shows a dropdown chevron after the underlined name", () => {
+test("home project switcher trigger is the underlined name without a chevron", () => {
assert.match(
switcher,
- /<span className="project-underline-name">\{name\}<\/span>\s*<IconChevronDown[\s\S]*?className="project-underline-chevron"[\s\S]*?aria-hidden/,
+ /<span className="project-underline-name">\{name\}<\/span>\s*<\/button>/,
);
+ assert.doesNotMatch(switcher, /project-underline-chevron/);
assert.match(
styles,
/\.empty-hero \.project-underline-name \{[\s\S]*?text-decoration:\s*underline dotted;/,
);
assert.match(
styles,
- /\.empty-hero \.project-underline\[aria-expanded="true"\] \.project-underline-chevron \{[\s\S]*?transform:\s*rotate\(180deg\);/,
+ /\.empty-hero \.project-underline\[aria-expanded="true"\] \.project-underline-name \{[\s\S]*?text-decoration-style:\s*solid;/,
);
});