mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 17:19:48 +01:00
Fix quick chat layout (#229885)
Enable chat input to grow and increase the size of the chat widget overall. Fix #229627 Also fix toolbar alignment in quick chat when the input is multiple lines
This commit is contained in:
@@ -952,7 +952,8 @@ export class ChatWidget extends Disposable implements IChatWidget {
|
||||
width = Math.min(width, 850);
|
||||
this.bodyDimension = new dom.Dimension(width, height);
|
||||
|
||||
this.inputPart.layout(height, width);
|
||||
const inputPartMaxHeight = this._dynamicMessageLayoutData?.enabled ? this._dynamicMessageLayoutData.maxHeight : height;
|
||||
this.inputPart.layout(inputPartMaxHeight, width);
|
||||
const inputPartHeight = this.inputPart.inputPartHeight;
|
||||
const lastElementVisible = this.tree.scrollTop + this.tree.renderHeight >= this.tree.scrollHeight;
|
||||
|
||||
|
||||
@@ -863,8 +863,14 @@ have to be updated for changes to the rules above, or to support more deeply nes
|
||||
margin: 0 3px;
|
||||
}
|
||||
|
||||
.quick-input-widget .interactive-session .interactive-input-part .chat-input-toolbars .monaco-toolbar,
|
||||
.quick-input-widget .interactive-session .interactive-input-part .chat-input-toolbars .actions-container {
|
||||
height: initial;
|
||||
}
|
||||
|
||||
.quick-input-widget .interactive-session .interactive-input-part .chat-input-toolbars {
|
||||
margin-bottom: 1px;
|
||||
align-items: flex-end;
|
||||
}
|
||||
|
||||
.quick-input-widget .interactive-session .chat-input-container {
|
||||
|
||||
Reference in New Issue
Block a user