mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-30 03:32:26 +08:00
19 lines
684 B
JavaScript
19 lines
684 B
JavaScript
![]() |
import FlexContainer from "./flex_container.js";
|
||
|
import NoteTitleWidget from "./note_title.js";
|
||
|
import NoteDetailWidget from "./note_detail.js";
|
||
|
import NoteTreeWidget from "./note_tree.js";
|
||
|
|
||
|
export default class MobileLayout {
|
||
|
getRootWidget(appContext) {
|
||
|
return new FlexContainer('row')
|
||
|
.setParent(appContext)
|
||
|
.id('root-widget')
|
||
|
.css('height', '100vh')
|
||
|
.child(new FlexContainer('column')
|
||
|
// .child(/* buttons */)
|
||
|
.child(new NoteTreeWidget()))
|
||
|
.child(new FlexContainer('column')
|
||
|
.child(new NoteTitleWidget())
|
||
|
.child(new NoteDetailWidget()));
|
||
|
}
|
||
|
}
|