mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 06:15:48 +01:00
start of mobile layout
This commit is contained in:
19
src/public/javascripts/widgets/mobile_layout.js
Normal file
19
src/public/javascripts/widgets/mobile_layout.js
Normal file
@@ -0,0 +1,19 @@
|
||||
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()));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user