Skip to content

Commit

Permalink
Fix NullInjectorError for the benchmark page
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 723657360
  • Loading branch information
Google AI Edge authored and copybara-github committed Feb 7, 2025
1 parent bd03aef commit 0f34a37
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/ui/src/components/visualizer/benchmark_runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import * as three from 'three';
import {ModelEdge, ModelGraph, NodeType, OpNode} from './common/model_graph';
import {Point} from './common/types';
import {generateCurvePoints} from './common/utils';
import {EdgeOverlaysService} from './edge_overlays_service';
import {Logo} from './logo';
import {SplitPaneService} from './split_pane_service';
import {SubgraphSelectionService} from './subgraph_selection_service';
Expand All @@ -50,7 +51,7 @@ const THREE = three;
ReactiveFormsModule,
WebglRenderer,
],
providers: [SubgraphSelectionService, SplitPaneService],
providers: [EdgeOverlaysService, SubgraphSelectionService, SplitPaneService],
templateUrl: './benchmark_runner.ng.html',
styleUrls: ['./benchmark_runner.scss'],
changeDetection: ChangeDetectionStrategy.OnPush,
Expand Down
3 changes: 2 additions & 1 deletion src/ui/src/components/visualizer/complex_queries.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@

&.min,
&.max {
width: 50px;
width: 46px;
flex-shrink: 0;
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions src/ui/src/components/visualizer/graph_selector_panel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
overflow-y: auto;

input {
font-family: sans-serif;
font-size: 12px;
margin: 4px 10px;
width: calc(100% - 20px);
Expand All @@ -40,6 +41,7 @@
height: 20px;
border-radius: 4px;
padding: 0 2px;
min-width: 184px;
}

.collection-container {
Expand Down
2 changes: 2 additions & 0 deletions src/ui/src/components/visualizer/search_bar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
font-size: 20px;
width: 20px;
height: 20px;
flex-shrink: 0;
}

mat-icon.clear {
Expand All @@ -55,6 +56,7 @@
padding: 0 4px;
font-size: 12px;
flex-grow: 1;
min-width: 0;
}

.btn-clear-container {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ $sync_highlight_color: #004fb8;
margin: 4px 0 0 36px;
resize: none;
border-radius: 3px;
font-family: 'Google Sans Text', 'Google Sans', Arial, Helvetica, sans-serif;
font-family: sans-serif;
font-size: 11px;
padding: 2px;
line-break: anywhere;
Expand Down
2 changes: 1 addition & 1 deletion src/ui/src/components/visualizer/view_on_node.scss
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
border: 1px solid #aaa;
border-radius: 3px;
padding: 3px 26px 3px 4px;
min-width: 200px;
width: 200px;

&::placeholder {
color: #aaa;
Expand Down

0 comments on commit 0f34a37

Please sign in to comment.