         state      (mf/use-state {:show-menu false })
 
         width      (:width @state 0)
-        visible    (/ width 66)
+        visible    (mth/round (/ width 66))
 
         offset     (:offset @state 0)
         max-offset (- (count items)

   [goog.events :as events]
   [okulary.core :as l]
   [rumext.alpha :as mf]
   [uxbox.main.data.library :as dlib]
   [uxbox.main.data.workspace :as udw]
   [uxbox.main.store :as st]


        on-left-arrow-click
        (mf/use-callback
         (mf/deps max-offset visible)
         (fn [event]
           (swap! state update :offset
                  (fn [offset]
                    (if (pos? offset)
                      (max (- offset (mth/round (/ visible 2))) 0)
                      offset)))))

        on-right-arrow-click
        (mf/use-callback
         (mf/deps max-offset visible)
         (fn [event]
           (swap! state update :offset
                  (fn [offset]
                    (if (< offset max-offset)
                      (min max-offset (+ offset (mth/round (/ visible 2))))
                      offset)))))

        on-scroll
