Skip to content

Commit 1d917c0

Browse files
authored
fix some chat ui again (microsoft#250032)
* fix some chat ui again * fix display on render
1 parent 8974990 commit 1d917c0

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/vs/workbench/contrib/chat/browser/chatAttachmentWidgets.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,14 +326,13 @@ function createImageElements(resource: URI | undefined, name: string, fullName:
326326
const hoverElement = dom.$('div.chat-attached-context-hover');
327327
hoverElement.setAttribute('aria-label', ariaLabel);
328328

329-
if (!supportsVision && currentLanguageModel) {
329+
if ((!supportsVision && currentLanguageModel) || omittedState === OmittedState.Full) {
330330
element.classList.add('warning');
331331
hoverElement.textContent = localize('chat.fileAttachmentHover', "{0} does not support this {1} type.", currentLanguageModelName, 'image');
332332
disposable.add(hoverService.setupDelayedHover(element, { content: hoverElement, appearance: { showPointer: true } }));
333333
} else {
334334
disposable.add(hoverService.setupDelayedHover(element, { content: hoverElement, appearance: { showPointer: true } }));
335335

336-
337336
const blob = new Blob([buffer as Uint8Array<ArrayBuffer>], { type: 'image/png' });
338337
const url = URL.createObjectURL(blob);
339338
const pillImg = dom.$('img.chat-attached-context-pill-image', { src: url, alt: '' });

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1869,6 +1869,10 @@ have to be updated for changes to the rules above, or to support more deeply nes
18691869

18701870
.interactive-session:not(.chat-widget > .interactive-session) {
18711871

1872+
.interactive-item-container {
1873+
padding-top: 5px 16px;
1874+
}
1875+
18721876
.interactive-item-container.interactive-request {
18731877
align-items: flex-end;
18741878
padding-bottom: 0px;
@@ -1883,7 +1887,6 @@ have to be updated for changes to the rules above, or to support more deeply nes
18831887
margin-left: auto;
18841888
width: fit-content;
18851889
margin-bottom: 5px;
1886-
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
18871890
position: relative;
18881891
}
18891892

@@ -1901,7 +1904,6 @@ have to be updated for changes to the rules above, or to support more deeply nes
19011904
}
19021905

19031906
.interactive-item-container.interactive-request .chat-attached-context {
1904-
margin-top: 10px;
19051907
max-width: 100%;
19061908
width: fit-content;
19071909
justify-content: flex-end;
@@ -1940,6 +1942,10 @@ have to be updated for changes to the rules above, or to support more deeply nes
19401942
padding-top: 4px;
19411943
padding-left: 1px;
19421944
}
1945+
1946+
.request-hover.has-no-actions {
1947+
display: none !important;
1948+
}
19431949
}
19441950

19451951
.chat-buttons-container {

0 commit comments

Comments
 (0)