|  | @@ -39,14 +39,12 @@
 | 
	
		
			
				|  |  |  (rum/defc home-button
 | 
	
		
			
				|  |  |    < {:key-fn #(identity "home-button")}
 | 
	
		
			
				|  |  |    []
 | 
	
		
			
				|  |  | -  (ui/with-shortcut :go/home "left"
 | 
	
		
			
				|  |  | -    [:button.button.icon.inline.mx-1
 | 
	
		
			
				|  |  | -     {:title (t :home)
 | 
	
		
			
				|  |  | -      :on-click #(do
 | 
	
		
			
				|  |  | -                   (when (mobile-util/native-iphone?)
 | 
	
		
			
				|  |  | -                     (state/set-left-sidebar-open! false))
 | 
	
		
			
				|  |  | -                   (route-handler/redirect-to-home!))}
 | 
	
		
			
				|  |  | -     (ui/icon "home" {:size ui/icon-size})]))
 | 
	
		
			
				|  |  | +  (shui/button-ghost-icon :home
 | 
	
		
			
				|  |  | +    {:title (t :home)
 | 
	
		
			
				|  |  | +     :on-click #(do
 | 
	
		
			
				|  |  | +                  (when (mobile-util/native-iphone?)
 | 
	
		
			
				|  |  | +                    (state/set-left-sidebar-open! false))
 | 
	
		
			
				|  |  | +                  (route-handler/redirect-to-home!))}))
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  (rum/defcs rtc-collaborators <
 | 
	
		
			
				|  |  |    rum/reactive
 | 
	
	
		
			
				|  | @@ -68,16 +66,13 @@
 | 
	
		
			
				|  |  |          online-users @(::online-users state)]
 | 
	
		
			
				|  |  |      (when rtc-graph-id
 | 
	
		
			
				|  |  |        [:div.rtc-collaborators.flex.gap-1.text-sm.py-2.bg-gray-01.items-center
 | 
	
		
			
				|  |  | -       (shui/button
 | 
	
		
			
				|  |  | -        {:variant :ghost
 | 
	
		
			
				|  |  | -         :size :sm
 | 
	
		
			
				|  |  | -         :class "px-2 opacity-50 hover:opacity-100"
 | 
	
		
			
				|  |  | -         :on-click #(shui/dialog-open!
 | 
	
		
			
				|  |  | +       (shui/button-ghost-icon :user-plus
 | 
	
		
			
				|  |  | +        {:on-click #(shui/dialog-open!
 | 
	
		
			
				|  |  |                       (fn []
 | 
	
		
			
				|  |  |                         [:div.p-2.-mb-8
 | 
	
		
			
				|  |  |                          [:h1.text-3xl.-mt-2.-ml-2 "Collaborators:"]
 | 
	
		
			
				|  |  | -                        (settings/settings-collaboration)]))}
 | 
	
		
			
				|  |  | -        (shui/tabler-icon "user-plus"))
 | 
	
		
			
				|  |  | +                        (settings/settings-collaboration)]))})
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |         (when (seq online-users)
 | 
	
		
			
				|  |  |           (for [{user-email :user/email
 | 
	
		
			
				|  |  |                  user-name :user/name
 | 
	
	
		
			
				|  | @@ -190,51 +185,51 @@
 | 
	
		
			
				|  |  |                                 :class "w-full"}})]
 | 
	
		
			
				|  |  |                   (concat page-menu-and-hr)
 | 
	
		
			
				|  |  |                   (remove nil?)))]
 | 
	
		
			
				|  |  | -    [:button#dots-menu.button.icon.toolbar-dots-btn
 | 
	
		
			
				|  |  | -     {:title (t :header/more)
 | 
	
		
			
				|  |  | -      :on-pointer-down (fn [^js e]
 | 
	
		
			
				|  |  | -                         (shui/popup-show! (.-target e)
 | 
	
		
			
				|  |  | -                                           (fn [{:keys [id]}]
 | 
	
		
			
				|  |  | -                                             (for [{:keys [hr item title options icon]} (items)]
 | 
	
		
			
				|  |  | -                                               (let [on-click' (:on-click options)
 | 
	
		
			
				|  |  | -                                                     href (:href options)]
 | 
	
		
			
				|  |  | -                                                 (if hr
 | 
	
		
			
				|  |  | -                                                   (shui/dropdown-menu-separator)
 | 
	
		
			
				|  |  | -                                                   (shui/dropdown-menu-item
 | 
	
		
			
				|  |  | -                                                    (assoc options
 | 
	
		
			
				|  |  | -                                                           :on-click (fn [^js e]
 | 
	
		
			
				|  |  | -                                                                       (when on-click'
 | 
	
		
			
				|  |  | -                                                                         (when-not (false? (on-click' e))
 | 
	
		
			
				|  |  | -                                                                           (shui/popup-hide! id)))))
 | 
	
		
			
				|  |  | -                                                    (or item
 | 
	
		
			
				|  |  | -                                                        (if href
 | 
	
		
			
				|  |  | -                                                          [:a.flex.items-center.w-full
 | 
	
		
			
				|  |  | -                                                           {:href href :on-click #(shui/popup-hide! id)
 | 
	
		
			
				|  |  | -                                                            :style {:color "inherit"}}
 | 
	
		
			
				|  |  | -                                                           [:span.flex.items-center.gap-1.w-full
 | 
	
		
			
				|  |  | -                                                            icon [:div title]]]
 | 
	
		
			
				|  |  | -                                                          [:span.flex.items-center.gap-1.w-full
 | 
	
		
			
				|  |  | -                                                           icon [:div title]])))))))
 | 
	
		
			
				|  |  | -                                           {:align "end"
 | 
	
		
			
				|  |  | -                                            :as-dropdown? true
 | 
	
		
			
				|  |  | -                                            :content-props {:class "w-64"
 | 
	
		
			
				|  |  | -                                                            :align-offset -32}}))}
 | 
	
		
			
				|  |  | -     (ui/icon "dots" {:size ui/icon-size})]))
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    (shui/button-ghost-icon :dots
 | 
	
		
			
				|  |  | +      {:title (t :header/more)
 | 
	
		
			
				|  |  | +       :class "toolbar-dots-btn"
 | 
	
		
			
				|  |  | +       :on-pointer-down (fn [^js e]
 | 
	
		
			
				|  |  | +                          (shui/popup-show! (.-target e)
 | 
	
		
			
				|  |  | +                            (fn [{:keys [id]}]
 | 
	
		
			
				|  |  | +                              (for [{:keys [hr item title options icon]} (items)]
 | 
	
		
			
				|  |  | +                                (let [on-click' (:on-click options)
 | 
	
		
			
				|  |  | +                                      href (:href options)]
 | 
	
		
			
				|  |  | +                                  (if hr
 | 
	
		
			
				|  |  | +                                    (shui/dropdown-menu-separator)
 | 
	
		
			
				|  |  | +                                    (shui/dropdown-menu-item
 | 
	
		
			
				|  |  | +                                      (assoc options
 | 
	
		
			
				|  |  | +                                        :on-click (fn [^js e]
 | 
	
		
			
				|  |  | +                                                    (when on-click'
 | 
	
		
			
				|  |  | +                                                      (when-not (false? (on-click' e))
 | 
	
		
			
				|  |  | +                                                        (shui/popup-hide! id)))))
 | 
	
		
			
				|  |  | +                                      (or item
 | 
	
		
			
				|  |  | +                                        (if href
 | 
	
		
			
				|  |  | +                                          [:a.flex.items-center.w-full
 | 
	
		
			
				|  |  | +                                           {:href href :on-click #(shui/popup-hide! id)
 | 
	
		
			
				|  |  | +                                            :style {:color "inherit"}}
 | 
	
		
			
				|  |  | +                                           [:span.flex.items-center.gap-1.w-full
 | 
	
		
			
				|  |  | +                                            icon [:div title]]]
 | 
	
		
			
				|  |  | +                                          [:span.flex.items-center.gap-1.w-full
 | 
	
		
			
				|  |  | +                                           icon [:div title]])))))))
 | 
	
		
			
				|  |  | +                            {:align "end"
 | 
	
		
			
				|  |  | +                             :as-dropdown? true
 | 
	
		
			
				|  |  | +                             :content-props {:class "w-64"
 | 
	
		
			
				|  |  | +                                             :align-offset -32}}))})))
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  (rum/defc back-and-forward
 | 
	
		
			
				|  |  |    < {:key-fn #(identity "nav-history-buttons")}
 | 
	
		
			
				|  |  |    []
 | 
	
		
			
				|  |  |    [:div.flex.flex-row
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |     (ui/with-shortcut :go/backward "bottom"
 | 
	
		
			
				|  |  | -     [:button.it.navigation.nav-left.button.icon
 | 
	
		
			
				|  |  | -      {:title (t :header/go-back) :on-click #(js/window.history.back)}
 | 
	
		
			
				|  |  | -      (ui/icon "arrow-left" {:size ui/icon-size})])
 | 
	
		
			
				|  |  | +     (shui/button-ghost-icon :arrow-left
 | 
	
		
			
				|  |  | +       {:title (t :header/go-back) :on-click #(js/window.history.back)
 | 
	
		
			
				|  |  | +        :class "it navigation nav-left"}))
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |     (ui/with-shortcut :go/forward "bottom"
 | 
	
		
			
				|  |  | -     [:button.it.navigation.nav-right.button.icon
 | 
	
		
			
				|  |  | -      {:title (t :header/go-forward) :on-click #(js/window.history.forward)}
 | 
	
		
			
				|  |  | -      (ui/icon "arrow-right" {:size ui/icon-size})])])
 | 
	
		
			
				|  |  | +     (shui/button-ghost-icon :arrow-right
 | 
	
		
			
				|  |  | +       {:title (t :header/go-forward) :on-click #(js/window.history.forward)
 | 
	
		
			
				|  |  | +        :class "it navigation nav-right"}))])
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  (rum/defc updater-tips-new-version
 | 
	
		
			
				|  |  |    [t]
 |