mirror of
https://github.com/zadam/trilium.git
synced 2025-12-17 21:59:55 +01:00
chore(layout/inline-title): placeholder for the title
This commit is contained in:
@@ -52,6 +52,7 @@ import StandaloneRibbonAdapter from "../widgets/ribbon/components/StandaloneRibb
|
|||||||
import NoteBadges from "../widgets/layout/NoteBadges.jsx";
|
import NoteBadges from "../widgets/layout/NoteBadges.jsx";
|
||||||
import NoteTitleDetails from "../widgets/NoteTitleDetails.jsx";
|
import NoteTitleDetails from "../widgets/NoteTitleDetails.jsx";
|
||||||
import StatusBar from "../widgets/layout/StatusBar.jsx";
|
import StatusBar from "../widgets/layout/StatusBar.jsx";
|
||||||
|
import InlineTitle from "../widgets/layout/InlineTitle.jsx";
|
||||||
|
|
||||||
export default class DesktopLayout {
|
export default class DesktopLayout {
|
||||||
|
|
||||||
@@ -145,7 +146,7 @@ export default class DesktopLayout {
|
|||||||
.child(
|
.child(
|
||||||
new SplitNoteContainer(() =>
|
new SplitNoteContainer(() =>
|
||||||
new NoteWrapperWidget()
|
new NoteWrapperWidget()
|
||||||
.optChild(!isFloatingTitlebar, titleRow)
|
.child(titleRow)
|
||||||
.optChild(!isNewLayout, <Ribbon><NoteActions /></Ribbon>)
|
.optChild(!isNewLayout, <Ribbon><NoteActions /></Ribbon>)
|
||||||
.optChild(isNewLayout, <Ribbon />)
|
.optChild(isNewLayout, <Ribbon />)
|
||||||
.child(new WatchedFileUpdateStatusWidget())
|
.child(new WatchedFileUpdateStatusWidget())
|
||||||
@@ -153,7 +154,7 @@ export default class DesktopLayout {
|
|||||||
.child(
|
.child(
|
||||||
new ScrollingContainer()
|
new ScrollingContainer()
|
||||||
.filling()
|
.filling()
|
||||||
.optChild(isFloatingTitlebar, titleRow)
|
.optChild(isNewLayout, <InlineTitle />)
|
||||||
.optChild(isNewLayout, <NoteTitleDetails />)
|
.optChild(isNewLayout, <NoteTitleDetails />)
|
||||||
.optChild(!isNewLayout, new ContentHeader()
|
.optChild(!isNewLayout, new ContentHeader()
|
||||||
.child(<ReadOnlyNoteInfoBar />)
|
.child(<ReadOnlyNoteInfoBar />)
|
||||||
|
|||||||
5
apps/client/src/widgets/layout/InlineTitle.css
Normal file
5
apps/client/src/widgets/layout/InlineTitle.css
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
.component.inline-title-row {
|
||||||
|
contain: none;
|
||||||
|
padding-block: 2em;
|
||||||
|
padding-inline-start: 24px;
|
||||||
|
}
|
||||||
9
apps/client/src/widgets/layout/InlineTitle.tsx
Normal file
9
apps/client/src/widgets/layout/InlineTitle.tsx
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
import "./InlineTitle.css";
|
||||||
|
|
||||||
|
export default function InlineTitle() {
|
||||||
|
return (
|
||||||
|
<div className="inline-title-row">
|
||||||
|
Title goes here.
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user