|  | @@ -41,18 +41,15 @@
 | 
	
		
			
				|  |  |              [reitit.frontend.easy :as rfe]
 | 
	
		
			
				|  |  |              [rum.core :as rum]))
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -(rum/defc nav-content-item
 | 
	
		
			
				|  |  | +(rum/defc nav-content-item < rum/reactive
 | 
	
		
			
				|  |  |    [name {:keys [class]} child]
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -  [:div.nav-content-item.is-expand
 | 
	
		
			
				|  |  | -   {:class class}
 | 
	
		
			
				|  |  | +  [:div.nav-content-item
 | 
	
		
			
				|  |  | +   {:class (util/classnames [class {:is-expand (not (state/sub [:ui/navigation-item-collapsed? class]))}])}
 | 
	
		
			
				|  |  |     [:div.nav-content-item-inner
 | 
	
		
			
				|  |  |      [:div.header.items-center.mb-1
 | 
	
		
			
				|  |  | -     {:on-click (fn [^js/MouseEvent e]
 | 
	
		
			
				|  |  | -                  (let [^js target (.-target e)
 | 
	
		
			
				|  |  | -                        ^js parent (.closest target ".nav-content-item")]
 | 
	
		
			
				|  |  | -                    (.toggle (.-classList parent) "is-expand")))}
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +     {:on-click (fn [^js/MouseEvent _e]
 | 
	
		
			
				|  |  | +                  (state/toggle-navigation-item-collapsed! class))}
 | 
	
		
			
				|  |  |       [:div.font-medium.fade-link name]
 | 
	
		
			
				|  |  |       [:span
 | 
	
		
			
				|  |  |        [:a.more svg/arrow-down-v2]]]
 | 
	
	
		
			
				|  | @@ -263,7 +260,7 @@
 | 
	
		
			
				|  |  |             :active (and (not srs-open?) (= route-name :all-pages))
 | 
	
		
			
				|  |  |             :icon   "files"})]]
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -      (favorites t)
 | 
	
		
			
				|  |  | +      (when (and left-sidebar-open? (not config/publishing?)) (favorites t))
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |        (when (and left-sidebar-open? (not config/publishing?)) (recent-pages t))
 | 
	
		
			
				|  |  |  
 |