File tree 3 files changed +21
-34
lines changed
tensorboard/webapp/runs/views/runs_table
3 files changed +21
-34
lines changed Original file line number Diff line number Diff line change 31
31
[attr.aria-checked] ="selectedGroupBy.key === GroupByKey.EXPERIMENT "
32
32
(click) ="onGroupByChange.emit({key: GroupByKey.EXPERIMENT}) "
33
33
>
34
- < span >
35
- < mat-icon
36
- *ngIf ="selectedGroupBy.key === GroupByKey.EXPERIMENT "
37
- svgIcon ="done_24px "
38
- > </ mat-icon >
39
- </ span >
40
- < label > Experiment</ label >
34
+ < mat-icon
35
+ *ngIf ="selectedGroupBy.key === GroupByKey.EXPERIMENT "
36
+ svgIcon ="done_24px "
37
+ > </ mat-icon >
38
+ < span > Experiment</ span >
41
39
</ button >
42
40
< button
43
41
mat-menu-item
46
44
[attr.aria-checked] ="selectedGroupBy.key === GroupByKey.RUN "
47
45
(click) ="onGroupByChange.emit({key: GroupByKey.RUN}) "
48
46
>
49
- < span >
50
- < mat-icon
51
- *ngIf ="selectedGroupBy.key === GroupByKey.RUN "
52
- svgIcon ="done_24px "
53
- > </ mat-icon >
54
- </ span >
55
- < label > Run</ label >
47
+ < mat-icon
48
+ *ngIf ="selectedGroupBy.key === GroupByKey.RUN "
49
+ svgIcon ="done_24px "
50
+ > </ mat-icon >
51
+ < span > Run</ span >
56
52
</ button >
57
53
< button
58
54
mat-menu-item
61
57
[attr.aria-checked] ="selectedGroupBy.key === GroupByKey.REGEX "
62
58
(click) ="onGroupByRegexClick() "
63
59
>
64
- < span >
65
- < mat-icon
66
- *ngIf ="selectedGroupBy.key === GroupByKey.REGEX "
67
- svgIcon ="done_24px "
68
- > </ mat-icon >
69
- </ span >
70
- < label > Regex</ label >
60
+ < mat-icon
61
+ *ngIf ="selectedGroupBy.key === GroupByKey.REGEX "
62
+ svgIcon ="done_24px "
63
+ > </ mat-icon >
64
+ < span > Regex</ span >
71
65
</ button >
72
66
< button
73
67
mat-menu-item
76
70
(click) ="onRegexStringEdit() "
77
71
class ="display-regex-string "
78
72
>
79
- < span >
80
- < mat-icon svgIcon ="edit_24px "> </ mat-icon >
81
- </ span >
82
- < label *ngIf ="regexString "> {{regexString}}</ label >
83
- < label *ngIf ="!regexString " class ="none-set-string "> (none set)</ label >
73
+ < mat-icon svgIcon ="edit_24px "> </ mat-icon >
74
+ < span *ngIf ="regexString "> {{regexString}}</ span >
75
+ < span *ngIf ="!regexString " class ="none-set-string "> (none set)</ span >
84
76
</ button >
85
77
</ mat-menu >
Original file line number Diff line number Diff line change @@ -27,12 +27,6 @@ limitations under the License.
27
27
pointer-events : none ;
28
28
}
29
29
30
- button {
31
- display : grid ;
32
- gap : 2px 10px ;
33
- grid-template-columns : $_icon-size auto ;
34
- }
35
-
36
30
mat-icon {
37
31
height : $_icon-size ;
38
32
width : $_icon-size ;
Original file line number Diff line number Diff line change @@ -638,7 +638,7 @@ describe('runs_table', () => {
638
638
const items = getOverlayMenuItems ( ) ;
639
639
640
640
expect (
641
- items . map ( ( element ) => element . querySelector ( 'label ' ) ! . textContent )
641
+ items . map ( ( element ) => element . querySelector ( 'span ' ) ! . textContent )
642
642
) . toEqual ( [ 'Experiment' , 'Run' , 'Regex' , '(none set)' ] ) ;
643
643
} ) ;
644
644
@@ -655,9 +655,10 @@ describe('runs_table', () => {
655
655
656
656
openColorGroupDialog ( fixture ) ;
657
657
const items = getOverlayMenuItems ( ) ;
658
+ console . log ( 'items' , items ) ;
658
659
659
660
expect (
660
- items . map ( ( element ) => element . querySelector ( 'label ' ) ! . textContent )
661
+ items . map ( ( element ) => element . querySelector ( 'span ' ) ! . textContent )
661
662
) . toEqual ( [ 'Run' , 'Regex' , '(none set)' ] ) ;
662
663
} ) ;
663
664
You can’t perform that action at this time.
0 commit comments