feat(layout/right_pane): create empty container

This commit is contained in:
Elian Doran 2025-12-17 23:01:44 +02:00
parent 9872a3d522
commit 616af1502f
No known key found for this signature in database
2 changed files with 12 additions and 1 deletions

View File

@ -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 />)
)

View 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>
);
}