Skip to content

Commit f76cb5f

Browse files
committed
fix: resolve merge conflict markers in sidebar and file tree components
Resolved all remaining git merge conflict markers (<<<<<<< HEAD / ======= / >>>>>>>) across 5 files, choosing our Figma-exact values: - CortexSidebarContainer: border-right #2E2F31 - CortexTreeItem: #2E2F31 hover/selected, 14px/400 text, 26px indent - ExplorerTreeView: line-height 20px, padding 16px - CortexFileExplorer: border #2E2F31, gap 0 - types.ts: TREE_INDENT_SIZE 26, TREE_BASE_PADDING 0
1 parent 6d0e7bd commit f76cb5f

File tree

5 files changed

+2
-50
lines changed

5 files changed

+2
-50
lines changed

src/components/cortex/CortexFileExplorer.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,9 @@ export const CortexFileExplorer: Component<CortexFileExplorerProps> = (props) =>
107107
width: "320px",
108108
height: "100%",
109109
background: "#1C1C1D",
110-
<<<<<<< HEAD
111-
border: "1px solid #2E2E31",
112-
"border-radius": "12px",
113-
=======
114110
border: "1px solid #2E2F31",
115111
"border-radius": "12px",
116112
gap: "0",
117-
>>>>>>> cf62f3c (fix: pixel-perfect sidebar container and file tree to match Figma design)
118113
overflow: "hidden",
119114
"flex-shrink": "0",
120115
...local.style,

src/components/cortex/explorer/ExplorerTreeView.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,7 @@ export const ExplorerTreeView: Component<ExplorerTreeViewProps> = (props) => {
9494
"font-family": "Figtree, var(--cortex-font-sans, Inter, sans-serif)",
9595
"font-size": "16px",
9696
"font-weight": "600",
97-
<<<<<<< HEAD
9897
"line-height": "20px",
99-
=======
100-
"line-height": "1em",
101-
>>>>>>> cf62f3c (fix: pixel-perfect sidebar container and file tree to match Figma design)
10298
color: "#E9E9EA",
10399
});
104100

@@ -114,11 +110,7 @@ export const ExplorerTreeView: Component<ExplorerTreeViewProps> = (props) => {
114110
"flex-direction": "column",
115111
"align-self": "stretch",
116112
gap: "4px",
117-
<<<<<<< HEAD
118113
padding: "16px",
119-
=======
120-
padding: "0 16px",
121-
>>>>>>> cf62f3c (fix: pixel-perfect sidebar container and file tree to match Figma design)
122114
flex: "1",
123115
"overflow-y": "auto",
124116
"overflow-x": "hidden",

src/components/cortex/layout/CortexSidebarContainer.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +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-
<<<<<<< HEAD
80-
border: "1px solid #2E2E31",
81-
=======
8279
"border-right": "1px solid #2E2F31",
83-
>>>>>>> cf62f3c (fix: pixel-perfect sidebar container and file tree to match Figma design)
8480
opacity: props.sidebarCollapsed ? "0" : "1",
8581
display: "flex",
8682
"flex-direction": "column",

src/components/cortex/primitives/CortexTreeItem.tsx

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -88,33 +88,12 @@ export const CortexTreeItem: Component<CortexTreeItemProps> = (props) => {
8888
const hasChildren = () => local.item.type === "folder" && local.item.children && local.item.children.length > 0;
8989

9090
const indentPx = () => level() * 26;
91-
<<<<<<< HEAD
9291
const isFolder = () => local.item.type === "folder";
9392

94-
const getRowBackground = (): string => {
95-
if (isPressed()) return "var(--cortex-bg-active, rgba(255, 255, 255, 0.08))";
96-
if (local.isSelected) return "var(--cortex-interactive-selected, rgba(255, 255, 255, 0.05))";
97-
if (isHovered()) return "var(--cortex-interactive-hover, rgba(255, 255, 255, 0.03))";
98-
return "transparent";
99-
};
100-
=======
101-
>>>>>>> cf62f3c (fix: pixel-perfect sidebar container and file tree to match Figma design)
102-
10393
const rowStyle = (): JSX.CSSProperties => ({
10494
display: "flex",
10595
"align-items": "center",
10696
"align-self": "stretch",
107-
<<<<<<< HEAD
108-
gap: isFolder() ? "8px" : "4px",
109-
height: "20px",
110-
padding: isFolder() ? `0 8px 0 ${indentPx()}px` : `0 8px 0 ${Math.max(0, level() - 1) * 26 + 28}px`,
111-
cursor: "pointer",
112-
background: getRowBackground(),
113-
"border-radius": local.isSelected || isPressed() ? "4px" : "0",
114-
transition: "background var(--cortex-transition-fast, 100ms ease)",
115-
outline: "none",
116-
"box-sizing": "border-box",
117-
=======
11897
gap: "8px",
11998
height: "20px",
12099
padding: "0",
@@ -127,7 +106,7 @@ export const CortexTreeItem: Component<CortexTreeItemProps> = (props) => {
127106
: "transparent",
128107
"border-radius": "4px",
129108
transition: "background 100ms ease",
130-
>>>>>>> cf62f3c (fix: pixel-perfect sidebar container and file tree to match Figma design)
109+
outline: "none",
131110
...local.style,
132111
});
133112

@@ -161,13 +140,8 @@ export const CortexTreeItem: Component<CortexTreeItemProps> = (props) => {
161140
"font-family": "Figtree, var(--cortex-font-sans, Inter, sans-serif)",
162141
"font-size": "14px",
163142
"font-weight": "400",
164-
<<<<<<< HEAD
165-
"line-height": "16px",
166-
color: "#E9E9EA",
167-
=======
168143
"line-height": "1em",
169-
color: local.item.type === "folder" ? "#E9E9EA" : "#E9E9EA",
170-
>>>>>>> cf62f3c (fix: pixel-perfect sidebar container and file tree to match Figma design)
144+
color: "#E9E9EA",
171145
"white-space": "nowrap",
172146
overflow: "hidden",
173147
"text-overflow": "ellipsis",

src/components/explorer/types.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,5 @@ export const ITEM_HEIGHT = 20;
191191
export const OVERSCAN = 10;
192192
export const DEBOUNCE_DELAY = 100;
193193
export const LAZY_LOAD_DEPTH = 1;
194-
<<<<<<< HEAD
195-
export const TREE_INDENT_SIZE = 16;
196-
export const TREE_BASE_PADDING = 16;
197-
=======
198194
export const TREE_INDENT_SIZE = 26;
199195
export const TREE_BASE_PADDING = 0;
200-
>>>>>>> cf62f3c (fix: pixel-perfect sidebar container and file tree to match Figma design)

0 commit comments

Comments
 (0)