Skip to content

Commit

Permalink
Small bugfixes (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasAlaif authored Dec 16, 2024
1 parent ffa9ef0 commit c9f6bc9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions axiom-profiler-GUI/assets/html/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@ ul.selected-info {
/* Simple dot-svg view */

.dot {
display: inline-block;
position: relative;
}
.dot.scaled {
Expand Down
4 changes: 3 additions & 1 deletion axiom-profiler-GUI/src/infobars/omnibox/mode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -334,13 +334,15 @@ impl SearchMode {
FocusSearch {
results, select, ..
} => {
if select.is_none() {
commands.can_select(true);
}
let default = PickedSuggestion {
ridx,
choice_idx: None,
};
let new = select.filter(|s| s.ridx == ridx).unwrap_or(default);
*select = Some(new);
commands.can_select(true);

let entry = new.index(results, omnibox);
self.input = entry.search_text.clone();
Expand Down
5 changes: 4 additions & 1 deletion axiom-profiler-GUI/src/screen/inst_graph/filter/apply.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,10 @@ impl Filter {
let rev_graph = graph.raw.rev();
let relevant_non_qi_nodes: Vec<_> = Dfs::new(rev_graph, start)
.iter(rev_graph)
.filter(|nx| graph.raw.graph[*nx].kind().inst().is_none())
// TODO: this is left out for now because the first iteration of a
// matching loop is generally left out by the analysis and this will
// keep it in the displayed view:
// .filter(|nx| graph.raw.graph[*nx].kind().inst().is_none())
.filter(|nx| {
let node = &graph.raw.graph[*nx];
nodes_of_nth_matching_loop
Expand Down
2 changes: 1 addition & 1 deletion axiom-profiler-GUI/src/utils/split_div.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ impl Component for SplitDiv {
let style_right = format!(
"width:calc({}% - {}px); height:100%;",
inverse * 100.0,
middle_width * position
middle_width * inverse
);
let mut children = ctx.props().children.iter();
html! {
Expand Down

0 comments on commit c9f6bc9

Please sign in to comment.