mirror of
https://github.com/zadam/trilium.git
synced 2026-02-19 04:04:24 +01:00
feat(layout/right_pane): create empty container
This commit is contained in:
parent
9872a3d522
commit
616af1502f
@ -44,6 +44,7 @@ import Ribbon from "../widgets/ribbon/Ribbon.jsx";
|
||||
import ScrollPadding from "../widgets/scroll_padding.js";
|
||||
import SearchResult from "../widgets/search_result.jsx";
|
||||
import SharedInfo from "../widgets/shared_info.jsx";
|
||||
import RightPanelContainer from "../widgets/sidebar/RightPanelContainer.jsx";
|
||||
import SqlResults from "../widgets/sql_result.js";
|
||||
import SqlTableSchemas from "../widgets/sql_table_schemas.js";
|
||||
import TabRowWidget from "../widgets/tab_row.js";
|
||||
@ -174,12 +175,13 @@ export default class DesktopLayout {
|
||||
.child(...this.customWidgets.get("center-pane"))
|
||||
|
||||
)
|
||||
.child(
|
||||
.optChild(!isNewLayout,
|
||||
new RightPaneContainer()
|
||||
.child(new TocWidget())
|
||||
.child(new HighlightsListWidget())
|
||||
.child(...this.customWidgets.get("right-pane"))
|
||||
)
|
||||
.optChild(isNewLayout, <RightPanelContainer />)
|
||||
)
|
||||
.optChild(!launcherPaneIsHorizontal && isNewLayout, <StatusBar />)
|
||||
)
|
||||
|
||||
9
apps/client/src/widgets/sidebar/RightPanelContainer.tsx
Normal file
9
apps/client/src/widgets/sidebar/RightPanelContainer.tsx
Normal file
@ -0,0 +1,9 @@
|
||||
//! This is currently only used for the new layout.
|
||||
|
||||
export default function RightPanelContainer() {
|
||||
return (
|
||||
<div id="right-pane" style={{ width: 300 }}>
|
||||
Hi there.
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user