File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
src/vs/base/browser/ui/dialog Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 127
127
.monaco-dialog-box > .dialog-buttons-row {
128
128
display : flex;
129
129
align-items : center;
130
- justify-content : flex-end;
131
130
padding-right : 1px ;
132
131
overflow : hidden; /* buttons row should never overflow */
133
132
}
141
140
/** Dialog: Buttons */
142
141
.monaco-dialog-box > .dialog-buttons-row > .dialog-buttons {
143
142
display : flex;
143
+ width : 100% ;
144
+ justify-content : flex-end;
144
145
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 */
149
147
}
150
148
151
149
.monaco-dialog-box > .dialog-buttons-row > .dialog-buttons > .monaco-button {
Original file line number Diff line number Diff line change @@ -196,7 +196,6 @@ export class Dialog extends Disposable {
196
196
197
197
const buttonBar = this . buttonBar = this . _register ( new ButtonBar ( this . buttonsContainer ) ) ;
198
198
const buttonMap = this . rearrangeButtons ( this . buttons , this . options . cancelId ) ;
199
- this . buttonsContainer . classList . toggle ( 'centered' ) ;
200
199
201
200
// Handle button clicks
202
201
buttonMap . forEach ( ( entry , index ) => {
You can’t perform that action at this time.
0 commit comments