mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-26 06:51:31 +08:00
feat(client): respect layout orientation selected by user
This commit is contained in:
parent
4f305b52eb
commit
62d23b3643
@ -83,6 +83,7 @@ import UploadAttachmentsDialog from "../widgets/dialogs/upload_attachments.js";
|
|||||||
import CopyImageReferenceButton from "../widgets/floating_buttons/copy_image_reference_button.js";
|
import CopyImageReferenceButton from "../widgets/floating_buttons/copy_image_reference_button.js";
|
||||||
import ScrollPaddingWidget from "../widgets/scroll_padding.js";
|
import ScrollPaddingWidget from "../widgets/scroll_padding.js";
|
||||||
import ClassicEditorToolbar from "../widgets/ribbon_widgets/classic_editor_toolbar.js";
|
import ClassicEditorToolbar from "../widgets/ribbon_widgets/classic_editor_toolbar.js";
|
||||||
|
import options from "../services/options.js";
|
||||||
|
|
||||||
export default class DesktopLayout {
|
export default class DesktopLayout {
|
||||||
constructor(customWidgets) {
|
constructor(customWidgets) {
|
||||||
@ -92,7 +93,7 @@ export default class DesktopLayout {
|
|||||||
getRootWidget(appContext) {
|
getRootWidget(appContext) {
|
||||||
appContext.noteTreeWidget = new NoteTreeWidget();
|
appContext.noteTreeWidget = new NoteTreeWidget();
|
||||||
|
|
||||||
const launcherPaneIsHorizontal = true;
|
const launcherPaneIsHorizontal = (options.get("layoutOrientation") === "horizontal");
|
||||||
const launcherPane = this.#buildLauncherPane(launcherPaneIsHorizontal);
|
const launcherPane = this.#buildLauncherPane(launcherPaneIsHorizontal);
|
||||||
|
|
||||||
return new RootContainer()
|
return new RootContainer()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user