Use css to center quick input (#163878)

This commit is contained in:
Matt Bierner
2022-10-19 06:03:04 -07:00
committed by GitHub
parent b16cd2d486
commit 40e7185033
2 changed files with 3 additions and 3 deletions

View File

@@ -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;
}

View File

@@ -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);