|
30 | 30 |
|
31 | 31 | (rum/defc journals |
32 | 32 | [] |
33 | | - (ui-component/classic-app-container-wrap |
34 | | - (journal/all-journals))) |
| 33 | + (journal/all-journals)) |
35 | 34 |
|
36 | 35 | (rum/defc home-inner < rum/static |
37 | 36 | [db-restoring?] |
|
118 | 117 | ;; - Journals layer keeps its own scroll container and is always in the DOM. |
119 | 118 | ;; - Page/other-tab layer keeps its own independent scroll container. |
120 | 119 | ;; Both are absolutely positioned and stacked; we toggle visibility. |
121 | | - [:div.h-full.relative |
122 | | - ;; Journals scroll container (keep-alive) |
| 120 | + [:div.w-full.relative |
| 121 | + ;; Journals scroll container (keep-alive) |
123 | 122 | [:div#app-main-home.pl-3.pr-2.absolute.inset-0 |
124 | 123 | {:class (when-not home? "invisible pointer-events-none")} |
125 | 124 | (home)] |
126 | 125 |
|
127 | | - ;; Other pages: search, settings, specific page, etc. |
| 126 | + ;; Other pages: search, settings, specific page, etc. |
128 | 127 | (when-not home? |
129 | 128 | (other-page view tab route-match))])) |
130 | 129 |
|
|
141 | 140 | (when-let [element (util/app-scroll-container-node)] |
142 | 141 | (common-handler/listen-to-scroll! element))) |
143 | 142 | []) |
144 | | - [:div.h-full |
| 143 | + [:<> |
145 | 144 | (mobile-header/header current-repo tab) |
146 | 145 | (main-content tab route-match)])) |
147 | 146 |
|
|
156 | 155 | show-action-bar? (state/sub :mobile/show-action-bar?) |
157 | 156 | {:keys [open? content-fn opts]} (rum/react mobile-state/*popup-data) |
158 | 157 | show-popup? (and open? content-fn) |
159 | | - fold-button-on-right? (state/enable-fold-button-right?) |
160 | 158 | route-match (state/sub :route-match)] |
161 | | - [:div#app-main.w-full.h-full |
162 | | - {:class (util/classnames |
163 | | - [{:ls-fold-button-on-right fold-button-on-right?}])} |
164 | | - [:div.w-full.h-full {:class (when show-popup? "invisible")} |
165 | | - (app current-repo route-match)] |
| 159 | + [:main#app-container-wrapper.ls-fold-button-on-right |
| 160 | + [:div#app-container {:class (when show-popup? "invisible")} |
| 161 | + [:div#main-container.flex.flex-1.overflow-x-hidden.py-4 |
| 162 | + (app current-repo route-match)]] |
166 | 163 | (when show-popup? |
167 | 164 | [:div.ls-layer |
168 | 165 | (popup/popup opts content-fn)]) |
|
0 commit comments