File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed
src/vs/editor/contrib/codeAction/browser Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ export interface ICodeActionMenuTemplateData {
90
90
}
91
91
92
92
const TEMPLATE_ID = 'codeActionWidget' ;
93
- const codeActionLineHeight = 27 ;
93
+ const codeActionLineHeight = 26 ;
94
94
95
95
class CodeMenuRenderer implements IListRenderer < ICodeActionMenuItem , ICodeActionMenuTemplateData > {
96
96
get templateId ( ) : string { return TEMPLATE_ID ; }
@@ -256,8 +256,8 @@ export class CodeActionMenu extends Disposable implements IEditorContribution {
256
256
// resize observer - can be used in the future since list widget supports dynamic height but not width
257
257
const maxWidth = Math . max ( ...arr ) ;
258
258
259
- // 40 is the additional padding for the list widget (20 left, 20 right)
260
- renderMenu . style . width = maxWidth + 40 + 'px' ;
259
+ // 40 is the additional padding for the list widget (26px left, 26px right)
260
+ renderMenu . style . width = maxWidth + 52 + 'px' ;
261
261
this . codeActionList . value ?. layout ( height , maxWidth ) ;
262
262
263
263
// List selection
Original file line number Diff line number Diff line change 4
4
*--------------------------------------------------------------------------------------------*/
5
5
6
6
.codeActionMenuWidget {
7
- padding : 10 px 0px 10 px 0px ;
7
+ padding : 8 px 0px 8 px 0px ;
8
8
overflow : auto;
9
9
font-size : 13px ;
10
10
border-radius : 5px ;
14
14
/* flex-direction: column;
15
15
flex: 0 1 auto; */
16
16
width : 100% ;
17
- border-style : solid;
18
- border-width : 1px ;
19
- border-color : var (--vscode-editorSuggestWidget-border );
17
+ border-width : 0px ;
18
+ border-color : none;
20
19
background-color : var (--vscode-menu-background );
21
20
color : var (--vscode-menu-foreground );
22
21
}
62
61
display : flex;
63
62
-mox-box-sizing : border-box;
64
63
box-sizing : border-box;
65
- padding : 0px 20 px 0px 20 px ;
64
+ padding : 0px 26 px 0px 26 px ;
66
65
background-repeat : no-repeat;
67
66
background-position : 2px 2px ;
68
67
white-space : nowrap;
You can’t perform that action at this time.
0 commit comments