Skip to content

Commit

Permalink
Fix v-split overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MawiraIke authored and superstructor committed Jun 22, 2022
1 parent 1915297 commit d9564ba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/day8/re_frame_10x/components/re_com.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,7 @@
(merge
{:class class
:style (merge (display-flex-style)
(scroll-style :overflow :off)
(flex-child-style (if split-is-px?
(if (pos? percentage)
(str "0 0 " percentage "px") ;; flex for panel-1
Expand Down
2 changes: 1 addition & 1 deletion src/day8/re_frame_10x/navigation/epochs/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@
(defclass epochs-style
[ambiance]
{:composes (styles/background ambiance)
:overflow-y :auto
#_#_:padding-left styles/gs-2s})

(defn epochs
Expand All @@ -86,6 +85,7 @@
all-events @(rf/subscribe [::epochs.subs/events-by-id])]
[rc/v-box
:class (epochs-style ambiance)
:width "100%"
:children (into [[rc/gap-f :size styles/gs-2s]]
(for [[id event] (reverse all-events)
:when (not-empty event)]
Expand Down
1 change: 1 addition & 0 deletions src/day8/re_frame_10x/navigation/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@
:panel-1 [rc/v-box
:height "100%"
:width "100%"
:style {:overflow :auto}
:children
[[rc/h-box
:class (navigation-style ambiance)
Expand Down

0 comments on commit d9564ba

Please sign in to comment.