Small tweaks for post edit widget (#233431)
- Use button colors so it stands out more - Make sure cancellation returns focus to the editor
This commit is contained in:
Родитель
ea6cdff1a6
Коммит
d24fdad5cb
|
@ -7,7 +7,8 @@
|
|||
box-shadow: 0 0 8px 2px var(--vscode-widget-shadow);
|
||||
border: 1px solid var(--vscode-widget-border, transparent);
|
||||
border-radius: 4px;
|
||||
background-color: var(--vscode-editorWidget-background);
|
||||
color: var(--vscode-button-foreground);
|
||||
background-color: var(--vscode-button-background);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
|
@ -18,7 +19,7 @@
|
|||
}
|
||||
|
||||
.post-edit-widget .monaco-button:hover {
|
||||
background-color: var(--vscode-button-secondaryHoverBackground) !important;
|
||||
background-color: var(--vscode-button-hoverBackground) !important;
|
||||
}
|
||||
|
||||
.post-edit-widget .monaco-button .codicon {
|
||||
|
|
|
@ -132,7 +132,9 @@ class PostEditWidget<T extends DocumentPasteEdit | DocumentDropEdit> extends Dis
|
|||
};
|
||||
})
|
||||
], {
|
||||
onHide: () => { },
|
||||
onHide: () => {
|
||||
this.editor.focus();
|
||||
},
|
||||
onSelect: (item) => {
|
||||
this._actionWidgetService.hide(false);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче