rename suggestions: fix: set border-radius on rename suggestions to give more polished look

fixes https://github.com/microsoft/vscode-copilot/issues/5306
This commit is contained in:
Ulugbek Abdullaev 2024-04-24 19:25:49 +05:00
parent 9ea63e8b93
commit 4be6ff5bd5
No known key found for this signature in database
GPG key ID: 4F1AB80F62B8E4A4
2 changed files with 6 additions and 0 deletions

View file

@ -42,6 +42,10 @@
background-color: var(--vscode-toolbar-hoverBackground)
}
.monaco-editor .rename-box .rename-candidate-list-container .monaco-list-row {
border-radius: 2px;
}
.monaco-editor .rename-box .rename-label {
display: none;
opacity: .8;

View file

@ -667,6 +667,7 @@ class RenameCandidateListView {
this._typicalHalfwidthCharacterWidth = opts.fontInfo.typicalHalfwidthCharacterWidth;
this._listContainer = document.createElement('div');
this._listContainer.className = 'rename-box rename-candidate-list-container';
parent.appendChild(this._listContainer);
this._listWidget = RenameCandidateListView._createListWidget(this._listContainer, this._candidateViewHeight, opts.fontInfo);
@ -992,6 +993,7 @@ class RenameCandidateView {
constructor(parent: HTMLElement, fontInfo: FontInfo) {
this._domNode = document.createElement('div');
this._domNode.className = 'rename-box rename-candidate';
this._domNode.style.display = `flex`;
this._domNode.style.columnGap = `5px`;
this._domNode.style.alignItems = `center`;