mirror of
https://github.com/zadam/trilium.git
synced 2025-12-18 05:14:24 +01:00
feat(layout/inline-title): title and icon
This commit is contained in:
parent
ac3d57d5da
commit
621ebe4396
@ -2,4 +2,6 @@
|
|||||||
contain: none;
|
contain: none;
|
||||||
padding-bottom: 2em;
|
padding-bottom: 2em;
|
||||||
padding-inline-start: 24px;
|
padding-inline-start: 24px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,6 +3,8 @@ import "./InlineTitle.css";
|
|||||||
import { useEffect, useRef, useState } from "preact/hooks";
|
import { useEffect, useRef, useState } from "preact/hooks";
|
||||||
|
|
||||||
import FNote from "../../entities/fnote";
|
import FNote from "../../entities/fnote";
|
||||||
|
import NoteIcon from "../note_icon";
|
||||||
|
import NoteTitleWidget from "../note_title";
|
||||||
import { useNoteContext } from "../react/hooks";
|
import { useNoteContext } from "../react/hooks";
|
||||||
|
|
||||||
export default function InlineTitle() {
|
export default function InlineTitle() {
|
||||||
@ -40,7 +42,8 @@ export default function InlineTitle() {
|
|||||||
ref={containerRef}
|
ref={containerRef}
|
||||||
className="inline-title-row"
|
className="inline-title-row"
|
||||||
>
|
>
|
||||||
Title goes here.
|
<NoteIcon />
|
||||||
|
<NoteTitleWidget />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user