 (rum/defc nested-n-square** < rum/static
   [scenar palette rr w h n highlight]
   (let [w (min w h)
-        padding 20
+        padding (* 4 tffsz)
         cols (count ((dicen n highlight) 0))
         rows (count (dicen n highlight))
         a (/ (- w (* 2 padding)) cols)
         ]
-
+(prn "nn " w h)
     (view {:style {:flex          1
                    :flexDirection "column"
                    :alignItems    "center"
+                   :justifyContent "flex-start"
                    :opacity       0.8}}
           (view {:style {:flex    0
                          :width   w
                          :height  (+ (* 2 padding) (icon-top (count (dicen n highlight)) a n))
                          :padding padding
+                         :paddingTop (/ padding 2)
                          }}
                 (for [[i row] (zipmap (range) (dicen n highlight))]
                   (view {:key   (str "r" i)

                     :justifyContent  "flex-start"
                     :backgroundColor (:primary palette)
                     }}
            (view {:style {:flex            0.3
                           :justifyContent  "center"
                           :alignItems      "stretch"
                           :backgroundColor (:dark-primary palette)
                           }}

                  (story-links palette)

                  (scroll-view {:style           {:flex 0.6}
                                :key             1
                                :backgroundColor (:dark-primary palette)
                                }
                               (scenario-title (:title scenar) text-field (:qoe scenar))
                               (text {:style {:padding    20
                                              :paddingTop 5
                                              :fontSize   tffsz}}
                                     (text-field :light-primary "normal" nn-head)
                                     (text-field (if (> rr 1) :accent :text-icons) "bold" nn-one)
                                     (text-field :light-primary "normal" nn-one-to-group)
                                     (text-field :light-primary "bold" nn-group)
                                     (text-field :light-primary "normal" nn-group-to-anyway)
                                     (text-field :accent "bold" nn-anyway)
                                     (text-field :light-primary "normal" nn-tail)))
                  )

            (view {:style {:flex          0.7
                           :flexDirection "column"}}


        rows (count (dicen nn highlight))
        a (/ (- w (* 2 padding)) cols)
        ]

    (letfn [(handle-scroll [event]
              (this-as this
                (.log js/console (-> event (.-nativeEvent) (.-contentOffset) (.-y)))
