fix: hide view all sessions on active project
This commit is contained in:
@@ -1006,7 +1006,7 @@ export default function Layout(props: ParentProps) {
|
|||||||
<div class="shrink-0 size-6 flex items-center justify-center">
|
<div class="shrink-0 size-6 flex items-center justify-center">
|
||||||
<Icon name="branch" size="small" class="text-icon-base" />
|
<Icon name="branch" size="small" class="text-icon-base" />
|
||||||
</div>
|
</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>
|
</div>
|
||||||
<For each={sessions(directory)}>
|
<For each={sessions(directory)}>
|
||||||
{(session) => (
|
{(session) => (
|
||||||
@@ -1018,18 +1018,20 @@ export default function Layout(props: ParentProps) {
|
|||||||
</For>
|
</For>
|
||||||
</Show>
|
</Show>
|
||||||
</div>
|
</div>
|
||||||
<div class="px-2 py-2 border-t border-border-weak-base">
|
<Show when={!selected()}>
|
||||||
<Button
|
<div class="px-2 py-2 border-t border-border-weak-base">
|
||||||
variant="ghost"
|
<Button
|
||||||
class="flex w-full text-left justify-start text-text-base px-2"
|
variant="ghost"
|
||||||
onClick={() => {
|
class="flex w-full text-left justify-start text-text-base px-2"
|
||||||
layout.sidebar.open()
|
onClick={() => {
|
||||||
navigateToProject(props.project.worktree)
|
layout.sidebar.open()
|
||||||
}}
|
navigateToProject(props.project.worktree)
|
||||||
>
|
}}
|
||||||
View all sessions
|
>
|
||||||
</Button>
|
View all sessions
|
||||||
</div>
|
</Button>
|
||||||
|
</div>
|
||||||
|
</Show>
|
||||||
</div>
|
</div>
|
||||||
</HoverCard>
|
</HoverCard>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user