Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion webviews/components/merge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -904,11 +904,11 @@ export const MergeStack = ({ pr }: { pr: PullRequest }) => {
{confirmed ? <>
<p>{confirmed.prompt}</p>
{error ? <p role="alert">Unable to merge stack: {error}</p> : null}
<button className="secondary" disabled={busy} onClick={() => setConfirming(undefined)}>Cancel</button>
<button disabled={busy} onClick={submit}>
{busy ? <span className="loading-button">{loadingIcon}</span> : null}
{busy ? confirmed.progress : confirmed.label}
</button>
<button className="secondary" disabled={busy} onClick={() => setConfirming(undefined)}>Cancel</button>
</> : <>
<div className="stack-merge-buttons">
<button onClick={() => setConfirming('stack')}>{actions.stack.label}</button>
Expand Down
6 changes: 6 additions & 0 deletions webviews/editorWebview/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,12 @@ button.input-box {
justify-content: flex-end;
}

/* Confirming a stack merge asks on a line of its own, so the button that confirms it starts where the merge button was rather than after the question. */
#status-checks .stack-merge > p {
flex-basis: 100%;
margin: 0;
}

/* The merge method of an automatic merge is chosen at the end of the row, where the merge button is otherwise. */
.merge-footer .automerge-section .merge-select-container {
margin-left: auto;
Expand Down
Loading