mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-03-25 09:25:50 +00:00
worktree button is not for mobile
This commit is contained in:
parent
e0617ab206
commit
8945dd5d66
1 changed files with 18 additions and 17 deletions
|
|
@ -322,23 +322,6 @@ export class SessionHeader extends LitElement {
|
|||
</div>
|
||||
</div>
|
||||
<div class="flex items-center gap-2 text-xs flex-shrink-0 ml-2">
|
||||
<!-- Git worktree toggle button (visible when session has Git repo) -->
|
||||
${
|
||||
this.hasGitRepo
|
||||
? html`
|
||||
<button
|
||||
class="bg-bg-tertiary border border-border rounded-md p-2 text-primary transition-all duration-200 hover:bg-surface-hover hover:border-primary flex-shrink-0"
|
||||
@click=${() => this.onToggleViewMode?.()}
|
||||
title="${this.viewMode === 'terminal' ? 'Show Worktrees' : 'Show Terminal'}"
|
||||
data-testid="worktree-toggle-button"
|
||||
>
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor">
|
||||
<path d="M1 2.828c.885-.37 2.154-.769 3.388-.893 1.33-.134 2.458.063 3.112.752v9.746c-.935-.53-2.12-.603-3.213-.493-1.18.12-2.37.461-3.287.811V2.828zm7.5-.141c.654-.689 1.782-.886 3.112-.752 1.234.124 2.503.523 3.388.893v9.923c-.918-.35-2.107-.692-3.287-.81-1.094-.111-2.278-.039-3.213.492V2.687zM8 1.783C7.015.936 5.587.81 4.287.94c-1.514.153-3.042.672-3.994 1.105A.5.5 0 0 0 0 2.5v11a.5.5 0 0 0 .707.455c.882-.4 2.303-.881 3.68-1.02 1.409-.142 2.59.087 3.223.877a.5.5 0 0 0 .78 0c.633-.79 1.814-1.019 3.222-.877 1.378.139 2.8.62 3.681 1.02A.5.5 0 0 0 16 13.5v-11a.5.5 0 0 0-.293-.455c-.952-.433-2.48-.952-3.994-1.105C10.413.809 8.985.936 8 1.783z"/>
|
||||
</svg>
|
||||
</button>
|
||||
`
|
||||
: ''
|
||||
}
|
||||
<!-- Keyboard capture indicator (always visible) -->
|
||||
<keyboard-capture-indicator
|
||||
.active=${this.keyboardCaptureActive}
|
||||
|
|
@ -385,6 +368,24 @@ export class SessionHeader extends LitElement {
|
|||
: html`
|
||||
<!-- Individual buttons for larger screens -->
|
||||
<div class="flex items-center gap-2">
|
||||
<!-- Git worktree toggle button (visible when session has Git repo) -->
|
||||
${
|
||||
this.hasGitRepo
|
||||
? html`
|
||||
<button
|
||||
class="bg-bg-tertiary border border-border rounded-md p-2 text-primary transition-all duration-200 hover:bg-surface-hover hover:border-primary flex-shrink-0"
|
||||
@click=${() => this.onToggleViewMode?.()}
|
||||
title="${this.viewMode === 'terminal' ? 'Show Worktrees' : 'Show Terminal'}"
|
||||
data-testid="worktree-toggle-button"
|
||||
>
|
||||
<svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor">
|
||||
<path d="M1 2.828c.885-.37 2.154-.769 3.388-.893 1.33-.134 2.458.063 3.112.752v9.746c-.935-.53-2.12-.603-3.213-.493-1.18.12-2.37.461-3.287.811V2.828zm7.5-.141c.654-.689 1.782-.886 3.112-.752 1.234.124 2.503.523 3.388.893v9.923c-.918-.35-2.107-.692-3.287-.81-1.094-.111-2.278-.039-3.213.492V2.687zM8 1.783C7.015.936 5.587.81 4.287.94c-1.514.153-3.042.672-3.994 1.105A.5.5 0 0 0 0 2.5v11a.5.5 0 0 0 .707.455c.882-.4 2.303-.881 3.68-1.02 1.409-.142 2.59.087 3.223.877a.5.5 0 0 0 .78 0c.633-.79 1.814-1.019 3.222-.877 1.378.139 2.8.62 3.681 1.02A.5.5 0 0 0 16 13.5v-11a.5.5 0 0 0-.293-.455c-.952-.433-2.48-.952-3.994-1.105C10.413.809 8.985.936 8 1.783z"/>
|
||||
</svg>
|
||||
</button>
|
||||
`
|
||||
: ''
|
||||
}
|
||||
|
||||
<!-- Status dropdown -->
|
||||
<session-status-dropdown
|
||||
.session=${this.session}
|
||||
|
|
|
|||
Loading…
Reference in a new issue