full width inline zone (#233215)

fixes https://github.com/microsoft/vscode/issues/233201#issuecomment-2460048937
This commit is contained in:
Johannes Rieken
2024-11-06 17:04:12 +01:00
committed by GitHub
parent c17224f354
commit d5bdaaa0c0

View File

@@ -152,7 +152,7 @@ export class InlineChatZoneWidget extends ZoneWidget {
protected override _doLayout(heightInPixel: number): void {
const info = this.editor.getLayoutInfo();
let width = info.contentWidth - (info.glyphMarginWidth + info.decorationsWidth);
let width = info.contentWidth + info.glyphMarginWidth - 8;
width = Math.min(850, width);
this._dimension = new Dimension(width, heightInPixel);