File tree 4 files changed +27
-1
lines changed
4 files changed +27
-1
lines changed Original file line number Diff line number Diff line change 68
68
transform : translateX (calc (100% + var (--viewport-padding )));
69
69
}
70
70
}
71
+
72
+ @keyframes spin {
73
+ 100% {
74
+ transform : rotate (360deg );
75
+ }
76
+ }
Original file line number Diff line number Diff line change @@ -519,3 +519,11 @@ pre {
519
519
.close-button {
520
520
@apply icon-button absolute top-3 right-3 !important ;
521
521
}
522
+
523
+ .loading {
524
+ position : absolute;
525
+ top : 50% ;
526
+ left : 50% ;
527
+ margin : -9px 0 0 -9px ;
528
+ animation : spin 4s linear infinite;
529
+ }
Original file line number Diff line number Diff line change 99
99
100
100
(defn root []
101
101
(let [zoom @(rf/subscribe [:document/zoom ])
102
- timeline? @(rf/subscribe [:panel/visible? :timeline ])]
102
+ timeline? @(rf/subscribe [:panel/visible? :timeline ])
103
+ loading? @(rf/subscribe [:worker/loading? ])]
103
104
[:<>
104
105
[:div.toolbar.bg-primary
105
106
[color-v/picker]
106
107
[:div.grow.text-xs.truncate.mx-1
107
108
@(rf/subscribe [:message ])]
109
+ (when loading?
110
+ [:<>
111
+ [:span.icon-button.relative
112
+ [comp/icon " refresh" {:class " loading" }]]
113
+ [:span.v-divider ]])
108
114
(into [:<> ]
109
115
(map (fn [{:keys [title active? icon action]}]
110
116
[comp/radio-icon-button {:title title
Original file line number Diff line number Diff line change 10
10
:worker/tasks
11
11
:<- [:worker ]
12
12
:-> :tasks )
13
+
14
+ (rf/reg-sub
15
+ :worker/loading?
16
+ :<- [:worker/tasks ]
17
+ (fn [tasks]
18
+ (seq tasks)))
You can’t perform that action at this time.
0 commit comments