Skip to content

Commit 1c61eb8

Browse files
committed
style: refine back button spacing
1 parent 637950e commit 1c61eb8

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

src/App.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import { PlanPanel } from "./components/PlanPanel";
3030
import { AboutView } from "./components/AboutView";
3131
import { TabBar } from "./components/TabBar";
3232
import { TabletNav } from "./components/TabletNav";
33-
import { TerminalSquare } from "lucide-react";
33+
import { ArrowLeft, TerminalSquare } from "lucide-react";
3434
import { useWorkspaces } from "./hooks/useWorkspaces";
3535
import { useThreads } from "./hooks/useThreads";
3636
import { useWindowDrag } from "./hooks/useWindowDrag";
@@ -529,14 +529,14 @@ function MainApp() {
529529
<div className="main-topbar-left">
530530
{centerMode === "diff" && (
531531
<button
532-
className="ghost icon-button"
532+
className="icon-button back-button"
533533
onClick={() => {
534534
setCenterMode("chat");
535535
setSelectedDiffPath(null);
536536
}}
537537
aria-label="Back to chat"
538538
>
539-
<span aria-hidden></span>
539+
<ArrowLeft aria-hidden />
540540
</button>
541541
)}
542542
<MainHeader

src/styles/main.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@
4949
padding: 6px 10px;
5050
}
5151

52+
.main-topbar-left .back-button {
53+
margin-left: -16px;
54+
padding: 6px;
55+
border: none;
56+
background: transparent;
57+
color: var(--text-muted);
58+
}
59+
5260

5361
.workspace-title-line {
5462
display: flex;

0 commit comments

Comments
 (0)