Improve behaviour of text filtering

- Make only the text itself clickable
- Stop propagation of the event any further, preventing the trace from
  also being toggled.
This commit is contained in:
Daniel Compton 2017-08-25 10:46:20 +12:00
parent 45a58550be
commit 48f17700d3
1 changed files with 10 additions and 6 deletions

View File

@ -172,14 +172,18 @@
nil)}}
[:td {:style row-style}
[:button (if show-row? "▼" "▶")]]
[:td {:style row-style
:on-click #(save-query op-type)}
[:td {:style row-style}
[:div.op-string
(str op-type)]]
[:td {:style row-style
:on-click #(save-query op-name)}
[:span {:on-click (fn [ev]
(save-query op-type)
(.stopPropagation ev))
:style {:cursor "pointer"}} (str op-type)]]]
[:td {:style row-style}
[:div.op-string
op-name]]
[:span {:on-click (fn [ev]
(save-query op-name)
(.stopPropagation ev))
:style {:cursor "pointer"}}] op-name]]
[:td
{:style (merge row-style {
; :font-weight (if (< slower-than-bold-int duration)