mirror of
https://github.com/status-im/re-frame-10x.git
synced 2025-02-05 19:03:24 +00:00
Refactor pod diff showing logic
This commit is contained in:
parent
676af57339
commit
a51a9037f5
@ -201,6 +201,8 @@
|
|||||||
|
|
||||||
#_"---main-section---"]])
|
#_"---main-section---"]])
|
||||||
(when render-diff?
|
(when render-diff?
|
||||||
|
(list
|
||||||
|
^{:key "only-before"}
|
||||||
[rc/v-box
|
[rc/v-box
|
||||||
:height common/gs-19s
|
:height common/gs-19s
|
||||||
:justify :end
|
:justify :end
|
||||||
@ -208,8 +210,9 @@
|
|||||||
:children [[rc/hyperlink-href
|
:children [[rc/hyperlink-href
|
||||||
;:class "app-db-path--label"
|
;:class "app-db-path--label"
|
||||||
:label "ONLY BEFORE"
|
:label "ONLY BEFORE"
|
||||||
:href "https://github.com/Day8/re-frame-trace/wiki/app-db#diff"]]])
|
:href "https://github.com/Day8/re-frame-trace/wiki/app-db#diff"]]]
|
||||||
(when render-diff?
|
|
||||||
|
^{:key "only-before-diff"}
|
||||||
[rc/v-box
|
[rc/v-box
|
||||||
:height "60px"
|
:height "60px"
|
||||||
:min-width "100px"
|
:min-width "100px"
|
||||||
@ -217,8 +220,9 @@
|
|||||||
:padding common/gs-7s
|
:padding common/gs-7s
|
||||||
:margin (css-join "0px" pad-padding)}
|
:margin (css-join "0px" pad-padding)}
|
||||||
:children [[components/simple-render
|
:children [[components/simple-render
|
||||||
diff-before]]])
|
diff-before]]]
|
||||||
(when render-diff?
|
|
||||||
|
^{:key "only-after"}
|
||||||
[rc/v-box
|
[rc/v-box
|
||||||
:height common/gs-19s
|
:height common/gs-19s
|
||||||
:justify :end
|
:justify :end
|
||||||
@ -226,8 +230,9 @@
|
|||||||
:children [[rc/hyperlink-href
|
:children [[rc/hyperlink-href
|
||||||
;:class "app-db-path--label"
|
;:class "app-db-path--label"
|
||||||
:label "ONLY AFTER"
|
:label "ONLY AFTER"
|
||||||
:href "https://github.com/Day8/re-frame-trace/wiki/app-db#diff"]]])
|
:href "https://github.com/Day8/re-frame-trace/wiki/app-db#diff"]]]
|
||||||
(when render-diff?
|
|
||||||
|
^{:key "only-after-diff"}
|
||||||
[rc/v-box
|
[rc/v-box
|
||||||
:height "60px"
|
:height "60px"
|
||||||
:min-width "100px"
|
:min-width "100px"
|
||||||
@ -235,7 +240,7 @@
|
|||||||
:padding common/gs-7s
|
:padding common/gs-7s
|
||||||
:margin (css-join "0px" pad-padding)}
|
:margin (css-join "0px" pad-padding)}
|
||||||
:children [[components/simple-render
|
:children [[components/simple-render
|
||||||
diff-before]]])
|
diff-before]]]))
|
||||||
(when open?
|
(when open?
|
||||||
[rc/gap-f :size pad-padding])]]))
|
[rc/gap-f :size pad-padding])]]))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user