mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
extra window layout updated to be consistent with main window
This commit is contained in:
parent
77bc5f9944
commit
01a82bed09
@ -9,6 +9,14 @@ import NoteTypeWidget from "../widgets/note_type.js";
|
|||||||
import NoteActionsWidget from "../widgets/note_actions.js";
|
import NoteActionsWidget from "../widgets/note_actions.js";
|
||||||
import NoteDetailWidget from "../widgets/note_detail.js";
|
import NoteDetailWidget from "../widgets/note_detail.js";
|
||||||
import OwnedAttributeListWidget from "../widgets/attribute_widgets/owned_attribute_list.js";
|
import OwnedAttributeListWidget from "../widgets/attribute_widgets/owned_attribute_list.js";
|
||||||
|
import CollapsibleSectionContainer from "../widgets/collapsible_section_container.js";
|
||||||
|
import SearchDefinitionWidget from "../widgets/search_definition.js";
|
||||||
|
import PromotedAttributesWidget from "../widgets/attribute_widgets/promoted_attributes.js";
|
||||||
|
import InheritedAttributesWidget from "../widgets/inherited_attribute_list.js";
|
||||||
|
import Container from "../widgets/container.js";
|
||||||
|
import SqlTableSchemasWidget from "../widgets/sql_table_schemas.js";
|
||||||
|
import NoteListWidget from "../widgets/note_list.js";
|
||||||
|
import SqlResultWidget from "../widgets/sql_result.js";
|
||||||
|
|
||||||
export default class DesktopExtraWindowLayout {
|
export default class DesktopExtraWindowLayout {
|
||||||
constructor(customWidgets) {
|
constructor(customWidgets) {
|
||||||
@ -37,8 +45,21 @@ export default class DesktopExtraWindowLayout {
|
|||||||
.child(new NoteTypeWidget().hideInZenMode())
|
.child(new NoteTypeWidget().hideInZenMode())
|
||||||
.child(new NoteActionsWidget().hideInZenMode())
|
.child(new NoteActionsWidget().hideInZenMode())
|
||||||
)
|
)
|
||||||
.child(new TabCachingWidget(() => new OwnedAttributeListWidget()))
|
.child(
|
||||||
|
new TabCachingWidget(() => new CollapsibleSectionContainer()
|
||||||
|
.child(new SearchDefinitionWidget())
|
||||||
|
.child(new PromotedAttributesWidget())
|
||||||
|
.child(new OwnedAttributeListWidget())
|
||||||
|
.child(new InheritedAttributesWidget())
|
||||||
|
)
|
||||||
|
)
|
||||||
|
.child(new Container()
|
||||||
|
.css('height: 100%; overflow: auto;')
|
||||||
|
.child(new TabCachingWidget(() => new SqlTableSchemasWidget()))
|
||||||
.child(new TabCachingWidget(() => new NoteDetailWidget()))
|
.child(new TabCachingWidget(() => new NoteDetailWidget()))
|
||||||
|
.child(new TabCachingWidget(() => new NoteListWidget()))
|
||||||
|
.child(new TabCachingWidget(() => new SqlResultWidget()))
|
||||||
|
)
|
||||||
.child(...this.customWidgets.get('center-pane'))
|
.child(...this.customWidgets.get('center-pane'))
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user