Skip to content

Commit

Permalink
Merge pull request #212315 from microsoft/roblou/miserable-tarsier
Browse files Browse the repository at this point in the history
A couple minor chat issues
  • Loading branch information
roblourens committed May 9, 2024
2 parents 5f78b58 + 212bc05 commit ced32c3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
7 changes: 5 additions & 2 deletions src/vs/workbench/contrib/chat/browser/chatListRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -800,11 +800,14 @@ export class ChatListItemRenderer extends Disposable implements ITreeRenderer<Ch
}

private renderContentReferencesIfNeeded(element: ChatTreeItem, templateData: IChatListItemTemplate, disposables: DisposableStore): void {
dom.clearNode(templateData.referencesListContainer);
if (isResponseVM(element) && this._usedReferencesEnabled && element.contentReferences.length) {
dom.show(templateData.referencesListContainer);
const contentReferencesListResult = this.renderContentReferencesListData(element.contentReferences, element, templateData);
templateData.referencesListContainer.appendChild(contentReferencesListResult.element);
if (templateData.referencesListContainer.firstChild) {
templateData.referencesListContainer.replaceChild(contentReferencesListResult.element, templateData.referencesListContainer.firstChild!);
} else {
templateData.referencesListContainer.appendChild(contentReferencesListResult.element);
}
disposables.add(contentReferencesListResult);
} else {
dom.hide(templateData.referencesListContainer);
Expand Down
12 changes: 8 additions & 4 deletions src/vs/workbench/contrib/chat/browser/media/chat.css
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,10 @@
margin: 0 0 16px 0;
}

.interactive-item-container .value > .rendered-markdown li > p {
margin: 0;
}

.interactive-item-container .value .rendered-markdown ul {
padding-inline-start: 24px;
}
Expand Down Expand Up @@ -324,6 +328,10 @@
margin: 0 0 8px 0;
}

.interactive-item-container.interactive-item-compact .value > .rendered-markdown li > p {
margin: 0;
}

.interactive-item-container.interactive-item-compact .value .rendered-markdown h1 {
margin: 8px 0;

Expand All @@ -337,10 +345,6 @@
margin: 8px 0;
}

.interactive-item-container.interactive-item-compact .value .rendered-markdown p {
margin: 0 0 8px 0;
}

.interactive-session .interactive-input-and-execute-toolbar {
display: flex;
box-sizing: border-box;
Expand Down

0 comments on commit ced32c3

Please sign in to comment.