fix(ui): keep git view toggle stationary when expand-all appears

The right-anchored .toolbar-actions group rendered the view toggle left of
the conditional expand/collapse-all button, so the toggle jumped left
whenever the button appeared. Render expand/collapse-all first (leftmost)
so only the space to its left changes; the toggle and Refresh stay put.
This commit is contained in:
Federico Jaramillo Martinez
2026-07-24 12:06:33 +02:00
parent 65a20b59fe
commit 10ee3daa0c
@@ -64,8 +64,8 @@ export class WorkspaceGitPanel extends LitElement {
<strong>Git</strong> <strong>Git</strong>
${context.gitStale ? html`<span class="stale">stale</span>` : null} ${context.gitStale ? html`<span class="stale">stale</span>` : null}
<div class="toolbar-actions"> <div class="toolbar-actions">
${this.renderViewToggle()}
${viewState.expandablePaths.length > 0 ? this.renderExpandCollapseAll(viewState.expandablePaths) : null} ${viewState.expandablePaths.length > 0 ? this.renderExpandCollapseAll(viewState.expandablePaths) : null}
${this.renderViewToggle()}
<button type="button" @click=${context.onRefreshGit}>Refresh</button> <button type="button" @click=${context.onRefreshGit}>Refresh</button>
</div> </div>
</section> </section>