Skip to content

Commit fbf594c

Browse files
authored
some working set ui cleanup (microsoft#264859)
1 parent b756398 commit fbf594c

2 files changed

Lines changed: 13 additions & 8 deletions

File tree

src/vs/workbench/contrib/chat/browser/chatContentParts/chatReferencesContentPart.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,13 @@ class CollapsibleListRenderer implements IListRenderer<IChatCollapsibleListItem,
310310
const templateDisposables = new DisposableStore();
311311
const label = templateDisposables.add(this.labels.create(container, { supportHighlights: true, supportIcons: true }));
312312

313+
const fileDiffsContainer = $('.working-set-line-counts');
314+
const addedSpan = dom.$('.working-set-lines-added');
315+
const removedSpan = dom.$('.working-set-lines-removed');
316+
fileDiffsContainer.appendChild(addedSpan);
317+
fileDiffsContainer.appendChild(removedSpan);
318+
label.element.appendChild(fileDiffsContainer);
319+
313320
let toolbar;
314321
let actionBarContainer;
315322
let contextKeyService;
@@ -321,13 +328,6 @@ class CollapsibleListRenderer implements IListRenderer<IChatCollapsibleListItem,
321328
label.element.appendChild(actionBarContainer);
322329
}
323330

324-
const fileDiffsContainer = $('.working-set-line-counts');
325-
const addedSpan = dom.$('.working-set-lines-added');
326-
const removedSpan = dom.$('.working-set-lines-removed');
327-
fileDiffsContainer.appendChild(addedSpan);
328-
fileDiffsContainer.appendChild(removedSpan);
329-
label.element.appendChild(fileDiffsContainer);
330-
331331
return { templateDisposables, label, toolbar, actionBarContainer, contextKeyService, fileDiffsContainer, addedSpan, removedSpan };
332332
}
333333

src/vs/workbench/contrib/chat/browser/media/chat.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@
465465
.message-wrapper {
466466
/* This mask fades out the end of the second line of text so the "see more" message can be displayed over it. */
467467
mask-image:
468-
linear-gradient(to right, rgba(0,0,0,1) calc(100% - 95px), rgba(0,0,0,0) calc(100% - 72px)), linear-gradient(to top, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 20px, rgba(0,0,0,1) 2px, rgba(0,0,0,1) 100%);
468+
linear-gradient(to right, rgba(0, 0, 0, 1) calc(100% - 95px), rgba(0, 0, 0, 0) calc(100% - 72px)), linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 20px, rgba(0, 0, 0, 1) 2px, rgba(0, 0, 0, 1) 100%);
469469
mask-repeat: no-repeat, no-repeat;
470470
pointer-events: none;
471471
max-height: 40px;
@@ -755,6 +755,7 @@ have to be updated for changes to the rules above, or to support more deeply nes
755755
}
756756

757757
.interactive-session .chat-editing-session .monaco-list-row .chat-collapsible-list-action-bar {
758+
padding-left: 5px;
758759
display: none;
759760
}
760761

@@ -768,6 +769,10 @@ have to be updated for changes to the rules above, or to support more deeply nes
768769
border-radius: 2px;
769770
}
770771

772+
.interactive-session .chat-editing-session .chat-editing-session-container.show-file-icons .chat-editing-session-list .monaco-scrollable-element:has(.visible.scrollbar.vertical) .monaco-list-row .monaco-icon-label {
773+
padding-right: 12px;
774+
}
775+
771776
.interactive-session .chat-editing-session .chat-editing-session-container .chat-editing-session-overview {
772777
display: flex;
773778
flex-direction: row;

0 commit comments

Comments
 (0)