Skip to content

Commit d4ed479

Browse files
Merge remote-tracking branch 'upstream/dev' into ocv
2 parents 5de695d + aa07f38 commit d4ed479

3 files changed

Lines changed: 8 additions & 13 deletions

File tree

packages/app/src/context/layout.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,14 @@ export const { use: useLayout, provider: LayoutProvider } = createSimpleContext(
391391
? globalSync.data.project.find((x) => x.id === projectID)
392392
: globalSync.data.project.find((x) => x.worktree === project.worktree)
393393

394-
return { ...metadata, ...project }
394+
// Preserve local icon override from per-workspace localStorage cache (childStore.icon).
395+
// Without this, different subdirectories of the same git repo would share the same
396+
// icon from the database instead of using their individual overrides.
397+
const base = { ...metadata, ...project }
398+
if (childStore.icon) {
399+
return { ...base, icon: { ...base.icon, override: childStore.icon } }
400+
}
401+
return base
395402
}
396403

397404
const roots = createMemo(() => {

packages/ui/src/components/basic-tool.css

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,6 @@
1111
cursor: pointer;
1212
}
1313

14-
&[data-hide-details="true"] {
15-
[data-slot="basic-tool-tool-trigger-content"] {
16-
flex: 1 1 auto;
17-
max-width: 100%;
18-
}
19-
20-
[data-slot="basic-tool-tool-info"] {
21-
flex: 1 1 auto;
22-
}
23-
}
24-
2514
[data-slot="basic-tool-tool-trigger-content"] {
2615
flex: 0 1 auto;
2716
width: auto;

packages/ui/src/components/message-part.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1207,7 +1207,6 @@
12071207

12081208
[data-slot="apply-patch-filename"] {
12091209
color: var(--text-strong);
1210-
flex: 1 1 auto;
12111210
min-width: 0;
12121211
overflow: hidden;
12131212
text-overflow: ellipsis;

0 commit comments

Comments
 (0)