mirror of
https://github.com/status-im/re-frame-10x.git
synced 2025-02-16 16:06:23 +00:00
Make expansion button not change size when expanding
It seems like this needs to be in a variable width font for the size to stay consistent.
This commit is contained in:
parent
cb91c168dc
commit
92e7a2b1bd
@ -455,3 +455,6 @@
|
||||
#--re-frame-trace-- .re-frame-trace--object > span {
|
||||
vertical-align: text-top;
|
||||
}
|
||||
#--re-frame-trace-- .expansion-button {
|
||||
font-family: sans-serif;
|
||||
}
|
||||
|
@ -550,4 +550,8 @@
|
||||
vertical-align: text-top;
|
||||
}
|
||||
}
|
||||
|
||||
.expansion-button {
|
||||
font-family: sans-serif;
|
||||
}
|
||||
}
|
||||
|
@ -168,7 +168,7 @@
|
||||
nil)])}
|
||||
|
||||
[:td.trace--toggle
|
||||
[:button (if show-row? "▼" "▶")]]
|
||||
[:button.expansion-button (if show-row? "▼" "▶")]]
|
||||
[:td.trace--op
|
||||
[:span.op-string {:on-click (fn [ev]
|
||||
(add-filter filter-items (name op-type) :contains)
|
||||
|
@ -26,7 +26,7 @@
|
||||
(when @expanded? "expanded")])}
|
||||
[:span {:class "toggle"
|
||||
:on-click #(swap! expanded? not)}
|
||||
[:button (if @expanded? "▼" "▶")]]
|
||||
[:button.expansion-button (if @expanded? "▼" "▶")]]
|
||||
(jsonml->hiccup (if @expanded?
|
||||
(cljs-devtools/body-api-call
|
||||
(.-object (get jsonml 1))
|
||||
@ -60,7 +60,7 @@
|
||||
(when @expanded? "expanded")])}
|
||||
[:span {:class "toggle"
|
||||
:on-click #(swap! expanded? not)}
|
||||
[:button (if @expanded? "▼ " "▶ ")]]
|
||||
[:button.expansion-button (if @expanded? "▼ " "▶ ")]]
|
||||
(or title "data")
|
||||
[:div {:style {:margin-left 20}}
|
||||
(cond
|
||||
|
Loading…
x
Reference in New Issue
Block a user