summaryrefslogtreecommitdiffhomepage
path: root/packages/app/src
diff options
context:
space:
mode:
authorDavid Hill <[email protected]>2026-01-15 19:01:14 +0000
committerDavid Hill <[email protected]>2026-01-15 19:15:21 +0000
commit1ee916a3c3429429aedb208daa6ad33e0591895a (patch)
treecb0c5584ebbcee8dc92ec5c89b6c1ded3f8bc7d8 /packages/app/src
parenta5d47f076ece6bc9ee8d30254f4a8e23cd85f74a (diff)
downloadopencode-1ee916a3c3429429aedb208daa6ad33e0591895a.tar.gz
opencode-1ee916a3c3429429aedb208daa6ad33e0591895a.zip
fix: hide view all sessions on active project
Diffstat (limited to 'packages/app/src')
-rw-r--r--packages/app/src/pages/layout.tsx28
1 files changed, 15 insertions, 13 deletions
diff --git a/packages/app/src/pages/layout.tsx b/packages/app/src/pages/layout.tsx
index bccf395aa..b4b82666b 100644
--- a/packages/app/src/pages/layout.tsx
+++ b/packages/app/src/pages/layout.tsx
@@ -1006,7 +1006,7 @@ export default function Layout(props: ParentProps) {
<div class="shrink-0 size-6 flex items-center justify-center">
<Icon name="branch" size="small" class="text-icon-base" />
</div>
- <span class="truncate text-14-medium text-text-strong">{label(directory)}</span>
+ <span class="truncate text-14-medium text-text-base">{label(directory)}</span>
</div>
<For each={sessions(directory)}>
{(session) => (
@@ -1018,18 +1018,20 @@ export default function Layout(props: ParentProps) {
</For>
</Show>
</div>
- <div class="px-2 py-2 border-t border-border-weak-base">
- <Button
- variant="ghost"
- class="flex w-full text-left justify-start text-text-base px-2"
- onClick={() => {
- layout.sidebar.open()
- navigateToProject(props.project.worktree)
- }}
- >
- View all sessions
- </Button>
- </div>
+ <Show when={!selected()}>
+ <div class="px-2 py-2 border-t border-border-weak-base">
+ <Button
+ variant="ghost"
+ class="flex w-full text-left justify-start text-text-base px-2"
+ onClick={() => {
+ layout.sidebar.open()
+ navigateToProject(props.project.worktree)
+ }}
+ >
+ View all sessions
+ </Button>
+ </div>
+ </Show>
</div>
</HoverCard>
</div>