fix(vscode): move diff badge to the right end of the action row

This commit is contained in:
marius-kilocode
2026-03-25 20:18:22 +01:00
parent 4dc55f6e59
commit 6867b49194
2 changed files with 16 additions and 14 deletions
@@ -150,20 +150,6 @@ export const ChatView: Component<ChatViewProps> = (props) => {
>
{language.t("command.session.new.task")}
</Button>
<Show when={isSidebar()}>
<button
class="session-diff-badge"
onClick={() => vscode.postMessage({ type: "openChanges" })}
aria-label={language.t("command.session.show.changes")}
>
<Icon name="layers" size="small" />
<Show when={session.summary()?.files} fallback={<span>0f</span>}>
<span class="session-diff-files">{session.summary()!.files}f</span>
<span class="session-diff-add">+{session.summary()!.additions}</span>
<span class="session-diff-del">-{session.summary()!.deletions}</span>
</Show>
</button>
</Show>
<Show when={canContinueInWorktree()}>
<Button
variant="ghost"
@@ -184,6 +170,20 @@ export const ChatView: Component<ChatViewProps> = (props) => {
{transferring() ? transferDetail() : "Worktree"}
</Button>
</Show>
<Show when={isSidebar()}>
<button
class="session-diff-badge"
onClick={() => vscode.postMessage({ type: "openChanges" })}
aria-label={language.t("command.session.show.changes")}
>
<Icon name="layers" size="small" />
<Show when={session.summary()?.files} fallback={<span>0f</span>}>
<span class="session-diff-files">{session.summary()!.files}f</span>
<span class="session-diff-add">+{session.summary()!.additions}</span>
<span class="session-diff-del">-{session.summary()!.deletions}</span>
</Show>
</button>
</Show>
</div>
</div>
</Show>
@@ -195,6 +195,7 @@
align-items: center;
justify-content: center;
gap: 4px;
margin-left: auto;
padding: 4px 8px;
border: none;
border-radius: 4px;
@@ -205,6 +206,7 @@
font-variant-numeric: tabular-nums;
cursor: pointer;
white-space: nowrap;
flex: 0 0 auto;
}
.session-diff-badge:hover {