Skip to content

Commit 4be6ff5

Browse files
committed
rename suggestions: fix: set border-radius on rename suggestions to give more polished look
fixes microsoft/vscode-copilot#5306
1 parent 9ea63e8 commit 4be6ff5

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/vs/editor/contrib/rename/browser/renameWidget.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@
4242
background-color: var(--vscode-toolbar-hoverBackground)
4343
}
4444

45+
.monaco-editor .rename-box .rename-candidate-list-container .monaco-list-row {
46+
border-radius: 2px;
47+
}
48+
4549
.monaco-editor .rename-box .rename-label {
4650
display: none;
4751
opacity: .8;

src/vs/editor/contrib/rename/browser/renameWidget.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,7 @@ class RenameCandidateListView {
667667
this._typicalHalfwidthCharacterWidth = opts.fontInfo.typicalHalfwidthCharacterWidth;
668668

669669
this._listContainer = document.createElement('div');
670+
this._listContainer.className = 'rename-box rename-candidate-list-container';
670671
parent.appendChild(this._listContainer);
671672

672673
this._listWidget = RenameCandidateListView._createListWidget(this._listContainer, this._candidateViewHeight, opts.fontInfo);
@@ -992,6 +993,7 @@ class RenameCandidateView {
992993
constructor(parent: HTMLElement, fontInfo: FontInfo) {
993994

994995
this._domNode = document.createElement('div');
996+
this._domNode.className = 'rename-box rename-candidate';
995997
this._domNode.style.display = `flex`;
996998
this._domNode.style.columnGap = `5px`;
997999
this._domNode.style.alignItems = `center`;

0 commit comments

Comments
 (0)