File tree Expand file tree Collapse file tree 4 files changed +14
-12
lines changed Expand file tree Collapse file tree 4 files changed +14
-12
lines changed Original file line number Diff line number Diff line change 23
23
</ div >
24
24
</ body >
25
25
26
- < script src ="js/shared.js "> </ script >
27
- < script src ="js/renderer.js "> </ script >
26
+ < script defer src ="js/shared.js "> </ script >
27
+ < script defer src ="js/renderer.js "> </ script >
28
28
29
29
</ html >
Original file line number Diff line number Diff line change 67
67
{:db app-db}
68
68
{::app.effects/clear-local-storage nil }))))
69
69
70
+ (rf/reg-event-db
71
+ ::set-loading
72
+ (fn [db [_ state]]
73
+ (assoc db :loading state)))
74
+
70
75
(rf/reg-event-fx
71
76
::db-loaded
72
77
[(rf/inject-cofx ::effects/guid )
84
89
(history.handlers/finalize #(t [:create-doc " Create document" ])))
85
90
86
91
initial-document
87
- (snap.handlers/rebuild-tree )
88
-
89
- :always
90
- (assoc :loading false ))
92
+ (snap.handlers/rebuild-tree ))
91
93
:fx (into
92
94
[[:dispatch [::theme.events/set-document-attr ]]
93
- [:dispatch ^:flush-dom [::set-lang-attrs ]]
95
+ [:dispatch [::set-lang-attrs ]]
96
+ [:dispatch [::set-loading false ]]
94
97
; ; We need to render once to get the canvas size right.
95
98
[:dispatch ^:flush-dom [::window.events/update-focused ]]
96
99
[::theme.effects/add-native-listener [::theme.events/set-document-attr ]]
Original file line number Diff line number Diff line change 352
352
active-tool @(rf/subscribe [::tool.subs/active ])
353
353
recent-documents @(rf/subscribe [::document.subs/recent ])
354
354
lang-dir @(rf/subscribe [::app.subs/lang-dir ])
355
- loading @(rf/subscribe [::app.subs/loading? ])]
356
- (if loading
357
- [:div.loader ]
355
+ is-app-loading @(rf/subscribe [::app.subs/loading? ])]
356
+ (when-not is-app-loading
358
357
[:> Direction/Provider {:dir lang-dir}
359
358
[:> Tooltip/Provider
360
359
[:div.flex.flex-col.flex-1.h-dvh.overflow-hidden.justify-between
Original file line number Diff line number Diff line change 274
274
275
275
& : after ,
276
276
& : before {
277
- @apply absolute top-0 left-0;
277
+ @apply absolute top-0 left-0 bg-white ;
278
278
content : '' ;
279
279
width : 24px ;
280
280
height : 24px ;
281
- border : 2 px solid var ( --font-color ) ;
281
+ border : 1 px solid gray ;
282
282
animation : rotationBreak 3s ease-in-out infinite alternate;
283
283
}
284
284
You can’t perform that action at this time.
0 commit comments