mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
fix(mobile): position of editing toolbar
This commit is contained in:
parent
7dfeb20678
commit
1d6e3af9aa
@ -31,7 +31,7 @@ const TPL = `\
|
||||
align-items: flex-end;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
bottom: calc(var(--tab-bar-height) + var(--launcher-pane-height) + var(--mobile-bottom-offset));
|
||||
right: 0;
|
||||
overflow-x: auto;
|
||||
z-index: 500;
|
||||
|
@ -230,14 +230,7 @@ export default class EditableTextTypeWidget extends AbstractTextTypeWidget {
|
||||
$classicToolbarWidget[0].appendChild(editor.ui.view.toolbar.element);
|
||||
|
||||
if (utils.isMobile()) {
|
||||
this.$editor.on("focus", (e) => {
|
||||
$classicToolbarWidget.addClass("visible");
|
||||
});
|
||||
|
||||
// Hide the formatting toolbar
|
||||
this.$editor.on("focusout", (e) => {
|
||||
this.$editor[0].focus();
|
||||
});
|
||||
$classicToolbarWidget.addClass("visible");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -45,6 +45,8 @@ body {
|
||||
--native-titlebar-foreground: var(--main-text-color);
|
||||
--native-titlebar-darwin-x-offset: 10;
|
||||
--native-titlebar-darwin-y-offset: 12;
|
||||
--launcher-pane-height: 53px;
|
||||
--tab-bar-height: 40px;
|
||||
}
|
||||
|
||||
body.mobile .desktop-only {
|
||||
|
Loading…
x
Reference in New Issue
Block a user