Skip to content

Commit d12a93c

Browse files
committed
fix: correct border color to #2E2E31, default item height to 20, fix comment typo
- CortexSidebarContainer: border #2E2F31 → #2E2E31 (matches Figma stroke) - VirtualFileTree: DEFAULT_ITEM_HEIGHT 18 → 20 (matches Figma tree row) - ExplorerHeader: fix padding comment (top=4 right=4 bottom=12 left=4) - FIGMA_SPECS.md: fix file padding formula in docs
1 parent 938939c commit d12a93c

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/components/cortex/FIGMA_SPECS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ File type icon: `16×16` (inside tab)
781781
| Align Items | `center` | `center` |
782782
| Height | `20px` | `20px` |
783783
| Gap | `8px` | `4px` |
784-
| Padding | `0 8px 0 {indent}` | `2px 8px 2px {indent+28}` |
784+
| Padding | `0 8px 0 {indent}` | `0 8px 0 max(0,level-1)*26+28` |
785785
| Sizing H | `fill` | `fill` |
786786

787787
### Indentation

src/components/cortex/explorer/ExplorerHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* ExplorerHeader - Tab header for Explorer panel
33
* Figma: pill-in-container tab switcher (file 4hKtI49khKHjribAGpFUkW, node 1060:33326)
44
*
5-
* Outer frame: 320×48, padding 4 4 4 12
5+
* Outer frame: 320×48, padding top=4 right=4 bottom=12 left=4
66
* Tab bar: 312×32, bg #141415, border-radius 8px, padding 4, gap 4
77
* Active button: 150×24, bg #1C1C1D, border-radius 4px
88
* Inactive button: 150×24, bg transparent, border-radius 4px

src/components/cortex/layout/CortexSidebarContainer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export function CortexSidebarContainer(props: CortexSidebarContainerProps) {
7676
transition: props.isResizing ? "none" : "width 150ms ease, opacity 150ms ease",
7777
background: "#1C1C1D",
7878
"border-radius": "12px",
79-
border: "1px solid #2E2F31",
79+
border: "1px solid #2E2E31",
8080
opacity: props.sidebarCollapsed ? "0" : "1",
8181
display: "flex",
8282
"flex-direction": "column",

src/components/explorer/VirtualFileTree.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export interface VirtualFileTreeProps {
5757
onOpen?: (path: string) => void;
5858
}
5959

60-
const DEFAULT_ITEM_HEIGHT = 18;
60+
const DEFAULT_ITEM_HEIGHT = 20;
6161
const DEFAULT_OVERSCAN = 10;
6262
const LAZY_LOAD_DEPTH = 1;
6363

0 commit comments

Comments
 (0)