This commit is contained in:
parent
08a0f835ab
commit
137428c48d
5 changed files with 28 additions and 2 deletions
|
@ -794,13 +794,13 @@
|
|||
<svg>
|
||||
<use xlink:href="#iconOutdent"></use>
|
||||
</svg>
|
||||
<del>iconOutdent</del>
|
||||
iconOutdent
|
||||
</div>
|
||||
<div>
|
||||
<svg>
|
||||
<use xlink:href="#iconIndent"></use>
|
||||
</svg>
|
||||
<del>iconIndent</del>
|
||||
iconIndent
|
||||
</div>
|
||||
<div>
|
||||
<svg>
|
||||
|
|
|
@ -248,6 +248,23 @@
|
|||
border-radius: 4px;
|
||||
}
|
||||
|
||||
#keyboardToolbar {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
height: 32px;
|
||||
background: var(--b3-theme-background-light);
|
||||
|
||||
svg {
|
||||
height: 18px;
|
||||
width: 18px;
|
||||
padding: 4px;
|
||||
margin: 4px;
|
||||
color: var(--b3-theme-on-surface);
|
||||
}
|
||||
}
|
||||
|
||||
.svg {
|
||||
fill: currentColor;
|
||||
display: inline-block;
|
||||
|
|
|
@ -55,5 +55,11 @@
|
|||
<div id="commonMenu" class="b3-menu fn__none"></div>
|
||||
<div id="message" class="b3-snackbars"></div>
|
||||
<div id="status" class="status status--hide"></div>
|
||||
<div id="keyboardToolbar" class="fn__none">
|
||||
<svg><use xlink:href="#iconUndo"></use></svg>
|
||||
<svg><use xlink:href="#iconRedo"></use></svg>
|
||||
<svg><use xlink:href="#iconOutdent"></use></svg>
|
||||
<svg><use xlink:href="#iconIndent"></use></svg>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -15,6 +15,7 @@ import {promiseTransactions} from "../protyle/wysiwyg/transaction";
|
|||
import {bootSync} from "../dialog/processSystem";
|
||||
import {initMessage} from "../dialog/message";
|
||||
import {goBack} from "./util/MobileBackFoward";
|
||||
import {showKeyboardToolbar} from "./util/showKeyboardToolbar";
|
||||
|
||||
class App {
|
||||
constructor() {
|
||||
|
@ -76,3 +77,4 @@ class App {
|
|||
new App();
|
||||
|
||||
window.goBack = goBack;
|
||||
window.showKeyboardToolbar = showKeyboardToolbar;
|
||||
|
|
1
app/src/types/index.d.ts
vendored
1
app/src/types/index.d.ts
vendored
|
@ -37,6 +37,7 @@ interface Window {
|
|||
}
|
||||
|
||||
goBack(): void
|
||||
showKeyboardToolbar(bottom?: number): void
|
||||
}
|
||||
|
||||
interface ITextOption {
|
||||
|
|
Loading…
Add table
Reference in a new issue