Feat: record audio on mobile (#4766)

* feat(audio): render audio link as component

* refactor frontend/component/block/inline

* fix audio component on mobile

* Fix(iOS): allow clock to replay audio

* feat(mobile): audio record

* add permission request code on record

* rename `editor/recording?` to `editor/record-status`

* move `get-asset-path` into handler/editor.cljs

* add android settings

* support sharing audio file from some apps

* enhance(record): insert audio link in a new block if non-editing

* feat(audio): allow cancelling record

* fix lints

* feat(iOS): add a tab bar

* tweak some css on mobile

* fix lints

* fix https://github.com/logseq/logseq/issues/4798

* enable tab bar on Android

* fix landscape height of tab bar

* add :reuse-last-block? option

* dont't show tab bar when editing mirror code

* tweak code-editor css

* increase width for more functional buttons

* fix card preview css on iPad

* add document-mode to tab bar

* remove tabbar when editing code and tweak textarea resize cursor behavior

* reduce SplashScreen launch screen duration

* don't show tabbar when editing page title

* enhance: float timer

* fix lint

* fix tabbar height on iPhone without notch

* remove .embed-page width

* fix lint

Co-authored-by: Andelf <andelf@gmail.com>
This commit is contained in:
llcc
2022-04-12 20:17:54 +08:00
committed by GitHub
parent 9f6aad98cf
commit f4985fd8ef
35 changed files with 1028 additions and 635 deletions

View File

@@ -28,6 +28,19 @@
}
}
#audio-record-toolbar {
position: fixed;
background-color: var(--ls-secondary-background-color);
bottom: 45px;
width: 88px;
justify-content: left;
left: 5px;
transition: none;
z-index: 9999;
padding: 5px 5px 0px 5px;
border-radius: 5px;
}
.editor-wrapper {
width: 100%;
margin: 0 auto;