mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-09 20:37:13 -05:00
Use css to center quick input (#163878)
This commit is contained in:
@@ -7,8 +7,9 @@
|
||||
position: absolute;
|
||||
width: 600px;
|
||||
z-index: 2550;
|
||||
left: 50%;
|
||||
margin-left: -300px;
|
||||
left: 0;
|
||||
right: 0;
|
||||
margin: 0 auto;
|
||||
-webkit-app-region: no-drag;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
@@ -1798,7 +1798,6 @@ export class QuickInputController extends Disposable {
|
||||
const style = this.ui.container.style;
|
||||
const width = Math.min(this.dimension!.width * 0.62 /* golden cut */, QuickInputController.MAX_WIDTH);
|
||||
style.width = width + 'px';
|
||||
style.marginLeft = '-' + (width / 2) + 'px';
|
||||
|
||||
this.ui.inputBox.layout();
|
||||
this.ui.list.layout(this.dimension && this.dimension.height * 0.4);
|
||||
|
||||
Reference in New Issue
Block a user