mirror of
https://github.com/zadam/trilium.git
synced 2025-02-24 23:13:43 +08:00
dont toggle panes note on the first load
This commit is contained in:
parent
2f680c4326
commit
e02eca87b0
2 changed files with 12 additions and 2 deletions
|
@ -23,6 +23,8 @@ function togglePanes() {
|
|||
|
||||
$closeDetailButton.click(togglePanes);
|
||||
|
||||
let firstLoad = true;
|
||||
|
||||
async function showTree() {
|
||||
const tree = await treeService.loadTree();
|
||||
|
||||
|
@ -39,7 +41,13 @@ async function showTree() {
|
|||
treeService.clearSelectedNodes();
|
||||
|
||||
treeService.setCurrentNotePathToHash(node);
|
||||
togglePanes();
|
||||
|
||||
if (!firstLoad) {
|
||||
togglePanes();
|
||||
}
|
||||
else {
|
||||
firstLoad = false;
|
||||
}
|
||||
|
||||
noteDetailService.switchToNote(noteId, true);
|
||||
},
|
||||
|
|
|
@ -45,12 +45,14 @@ html, body {
|
|||
overflow: auto;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
padding-left: 10px;
|
||||
/* large left padding is necessary for ckeditor gutter in detail-only (smartphone) layout */
|
||||
padding-left: 35px;
|
||||
}
|
||||
|
||||
#note-title-row {
|
||||
display: flex;
|
||||
padding-right: 10px;
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
.action-button {
|
||||
|
|
Loading…
Reference in a new issue