Skip to content

Commit 9f8d800

Browse files
committed
1 parent 778d704 commit 9f8d800

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/vs/base/browser/ui/dialog/dialog.css

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@
127127
.monaco-dialog-box > .dialog-buttons-row {
128128
display: flex;
129129
align-items: center;
130-
justify-content: flex-end;
131130
padding-right: 1px;
132131
overflow: hidden; /* buttons row should never overflow */
133132
}
@@ -141,11 +140,10 @@
141140
/** Dialog: Buttons */
142141
.monaco-dialog-box > .dialog-buttons-row > .dialog-buttons {
143142
display: flex;
143+
width: 100%;
144+
justify-content: flex-end;
144145
overflow: hidden;
145-
}
146-
147-
.monaco-dialog-box > .dialog-buttons-row > .dialog-buttons.centered {
148-
justify-content: center;
146+
margin-left: 67px; /* for long buttons, force align with text */
149147
}
150148

151149
.monaco-dialog-box > .dialog-buttons-row > .dialog-buttons > .monaco-button {

src/vs/base/browser/ui/dialog/dialog.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ export class Dialog extends Disposable {
196196

197197
const buttonBar = this.buttonBar = this._register(new ButtonBar(this.buttonsContainer));
198198
const buttonMap = this.rearrangeButtons(this.buttons, this.options.cancelId);
199-
this.buttonsContainer.classList.toggle('centered');
200199

201200
// Handle button clicks
202201
buttonMap.forEach((entry, index) => {

0 commit comments

Comments
 (0)