chore: css cleanup

pull/5457/head
Tienson Qin 2022-05-27 13:24:56 +08:00
parent f150b5db0f
commit a9267afb47
1 changed files with 10 additions and 12 deletions

View File

@ -37,17 +37,15 @@
[state]
(when (= (state/sub :editor/record-status) "RECORDING")
(swap! *record-start inc))
[:div.flex.flex-row
(if (= (state/sub :editor/record-status) "NONE")
(do
(reset! *record-start -1)
(mobile-bar-command record/start-recording "microphone"))
[:div.flex.flex-row.items-center
(mobile-bar-command record/stop-recording "player-stop")
[:div.timer.pl-2
{:on-click record/stop-recording}
(seconds->minutes:seconds @*record-start)]])
])
(if (= (state/sub :editor/record-status) "NONE")
(do
(reset! *record-start -1)
(mobile-bar-command record/start-recording "microphone"))
[:div.flex.flex-row.items-center
(mobile-bar-command record/stop-recording "player-stop")
[:div.timer.pl-2
{:on-click record/stop-recording}
(seconds->minutes:seconds @*record-start)]]))
(rum/defc footer < rum/reactive
[]
@ -55,7 +53,7 @@
(state/mobile?)
(state/sub :mobile/show-tabbar?)
(state/get-current-repo))
[:div.cp__footer.w-full.bottom-0.justify-between
[:div.cp__footer.w-full.bottom-0.justify-between.items-center
(audio-record-cp)
(mobile-bar-command #(state/toggle-document-mode!) "notes")
(mobile-bar-command