File tree 7 files changed +23
-29
lines changed
7 files changed +23
-29
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ const svg = {
18
18
domain : require ( "./domain.svg" ) ,
19
19
file : require ( "./file.svg" ) ,
20
20
folder : require ( "./folder.svg" ) ,
21
- function : require ( "./function.svg" ) ,
22
21
globe : require ( "./globe.svg" ) ,
23
22
javascript : require ( "./javascript.svg" ) ,
24
23
jquery : require ( "./jquery.svg" ) ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 43
43
white-space : nowrap;
44
44
}
45
45
46
+ .outline-list__element-icon {
47
+ padding-right : 0.4rem ;
48
+ padding-left : 1rem ;
49
+ }
50
+
46
51
.outline-list__element : hover {
47
52
background : var (--theme-toolbar-background-hover );
48
53
}
Original file line number Diff line number Diff line change @@ -9,7 +9,6 @@ import { bindActionCreators } from "redux";
9
9
import { connect } from "react-redux" ;
10
10
import actions from "../../actions" ;
11
11
import { getSelectedSource , getSymbols } from "../../selectors" ;
12
- import Svg from "../shared/Svg" ;
13
12
14
13
import "./Outline.css" ;
15
14
import PreviewFunction from "../shared/PreviewFunction" ;
@@ -55,7 +54,7 @@ export class Outline extends Component<Props> {
55
54
className = "outline-list__element"
56
55
onClick = { ( ) => this . selectItem ( location ) }
57
56
>
58
- < Svg name = "function" / >
57
+ < span className = "outline-list__element-icon" > λ </ span >
59
58
< PreviewFunction func = { { name, parameterNames } } />
60
59
</ li >
61
60
) ;
Original file line number Diff line number Diff line change @@ -12,9 +12,11 @@ exports[`Outline should render a list of functions when properties change 1`] =
12
12
key = " my_example_function1:21:undefined"
13
13
onClick = { [Function ]}
14
14
>
15
- <Svg
16
- name = " function"
17
- />
15
+ <span
16
+ className = " outline-list__element-icon"
17
+ >
18
+ λ
19
+ </span >
18
20
<PreviewFunction
19
21
func = {
20
22
Object {
@@ -29,9 +31,11 @@ exports[`Outline should render a list of functions when properties change 1`] =
29
31
key = " my_example_function2:22:undefined"
30
32
onClick = { [Function ]}
31
33
>
32
- <Svg
33
- name = " function"
34
- />
34
+ <span
35
+ className = " outline-list__element-icon"
36
+ >
37
+ λ
38
+ </span >
35
39
<PreviewFunction
36
40
func = {
37
41
Object {
@@ -57,9 +61,11 @@ exports[`Outline should render ignore anonimous functions 1`] = `
57
61
key = " my_example_function1:21:undefined"
58
62
onClick = { [Function ]}
59
63
>
60
- <Svg
61
- name = " function"
62
- />
64
+ <span
65
+ className = " outline-list__element-icon"
66
+ >
67
+ λ
68
+ </span >
63
69
<PreviewFunction
64
70
func = {
65
71
Object {
Original file line number Diff line number Diff line change @@ -962,7 +962,7 @@ const selectors = {
962
962
fileMatch : ".managed-tree .result" ,
963
963
popup : ".popover" ,
964
964
tooltip : ".tooltip" ,
965
- outlineItem : i => `.outline-list__element:nth-child(${ i } )` ,
965
+ outlineItem : i => `.outline-list__element:nth-child(${ i } ) .function-signature ` ,
966
966
outlineItems : ".outline-list__element"
967
967
} ;
968
968
Original file line number Diff line number Diff line change @@ -3743,7 +3743,7 @@ eslint-plugin-jest@^21.5.0:
3743
3743
version "21.7.0"
3744
3744
resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-21.7.0.tgz#651f1c6ce999af3ac59ab8bf8a376d742fd0fc23"
3745
3745
3746
-
3746
+ eslint-plugin-mozilla@^ 0.7.0 :
3747
3747
version "0.7.0"
3748
3748
resolved "https://registry.yarnpkg.com/eslint-plugin-mozilla/-/eslint-plugin-mozilla-0.7.0.tgz#679bbdc16e669d5213373578d7c5764e21234188"
3749
3749
dependencies :
You can’t perform that action at this time.
0 commit comments