mirror of
https://github.com/zadam/trilium.git
synced 2025-11-26 10:34:25 +01:00
chore(quick_edit): get note content to render
This commit is contained in:
parent
29f049c411
commit
5531c15126
@ -2591,7 +2591,7 @@ iframe.print-iframe {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
.scrolling-container > .note-detail.full-height,
|
.note-detail.full-height,
|
||||||
.scrolling-container > .note-list-widget.full-height {
|
.scrolling-container > .note-list-widget.full-height {
|
||||||
position: relative;
|
position: relative;
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
|
|||||||
@ -25,6 +25,8 @@ body.desktop .modal.popup-editor-dialog .modal-dialog {
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
height: 75vh;
|
height: 75vh;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal.popup-editor-dialog .note-detail-editable-text {
|
.modal.popup-editor-dialog .note-detail-editable-text {
|
||||||
|
|||||||
@ -6,6 +6,7 @@ import NoteTitleWidget from "../note_title";
|
|||||||
import NoteIcon from "../note_icon";
|
import NoteIcon from "../note_icon";
|
||||||
import NoteContext from "../../components/note_context";
|
import NoteContext from "../../components/note_context";
|
||||||
import { ParentComponent } from "../react/react_utils";
|
import { ParentComponent } from "../react/react_utils";
|
||||||
|
import NoteDetail from "../NoteDetail";
|
||||||
|
|
||||||
const noteContext = new NoteContext("_popup-editor");
|
const noteContext = new NoteContext("_popup-editor");
|
||||||
|
|
||||||
@ -31,18 +32,22 @@ export default function PopupEditor() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Modal
|
<Modal
|
||||||
title={(
|
title={<TitleRow />}
|
||||||
<div className="title-row">
|
|
||||||
<NoteIcon />
|
|
||||||
<NoteTitleWidget />
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
className="popup-editor-dialog"
|
className="popup-editor-dialog"
|
||||||
size="lg"
|
size="lg"
|
||||||
show={shown}
|
show={shown}
|
||||||
onHidden={() => setShown(false)}
|
onHidden={() => setShown(false)}
|
||||||
>
|
>
|
||||||
Body goes here
|
<NoteDetail />
|
||||||
</Modal>
|
</Modal>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function TitleRow() {
|
||||||
|
return (
|
||||||
|
<div className="title-row">
|
||||||
|
<NoteIcon />
|
||||||
|
<NoteTitleWidget />
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user