mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix layouting
This commit is contained in:
parent
02da5b598c
commit
d9ec8bba80
@ -23,6 +23,8 @@ export default class BookTypeWidget extends TypeWidget {
|
|||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.$helpNoChildren = this.$widget.find('.note-detail-book-empty-help');
|
this.$helpNoChildren = this.$widget.find('.note-detail-book-empty-help');
|
||||||
|
|
||||||
|
super.doRender();
|
||||||
}
|
}
|
||||||
|
|
||||||
async doRefresh(note) {
|
async doRefresh(note) {
|
||||||
|
@ -14,5 +14,7 @@ export default class DeletedTypeWidget extends TypeWidget {
|
|||||||
|
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
|
|
||||||
|
super.doRender();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -51,6 +51,8 @@ export default class EditableCodeTypeWidget extends TypeWidget {
|
|||||||
|
|
||||||
keyboardActionService.setupActionsForElement('code-detail', this.$widget, this);
|
keyboardActionService.setupActionsForElement('code-detail', this.$widget, this);
|
||||||
|
|
||||||
|
super.doRender();
|
||||||
|
|
||||||
this.initialized = this.initEditor();
|
this.initialized = this.initEditor();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,6 +66,8 @@ export default class EmptyTypeWidget extends TypeWidget {
|
|||||||
noteAutocompleteService.showRecentNotes(this.$autoComplete);
|
noteAutocompleteService.showRecentNotes(this.$autoComplete);
|
||||||
|
|
||||||
this.$workspaceNotes = this.$widget.find('.workspace-notes');
|
this.$workspaceNotes = this.$widget.find('.workspace-notes');
|
||||||
|
|
||||||
|
super.doRender();
|
||||||
}
|
}
|
||||||
|
|
||||||
async doRefresh(note) {
|
async doRefresh(note) {
|
||||||
|
@ -47,6 +47,8 @@ export default class FileTypeWidget extends TypeWidget {
|
|||||||
this.$pdfPreview = this.$widget.find(".pdf-preview");
|
this.$pdfPreview = this.$widget.find(".pdf-preview");
|
||||||
this.$videoPreview = this.$widget.find(".video-preview");
|
this.$videoPreview = this.$widget.find(".video-preview");
|
||||||
this.$audioPreview = this.$widget.find(".audio-preview");
|
this.$audioPreview = this.$widget.find(".audio-preview");
|
||||||
|
|
||||||
|
super.doRender();
|
||||||
}
|
}
|
||||||
|
|
||||||
async doRefresh(note) {
|
async doRefresh(note) {
|
||||||
|
@ -53,6 +53,8 @@ class ImageTypeWidget extends TypeWidget {
|
|||||||
zoomOnClick: false
|
zoomOnClick: false
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
super.doRender();
|
||||||
}
|
}
|
||||||
|
|
||||||
async doRefresh(note) {
|
async doRefresh(note) {
|
||||||
|
@ -7,5 +7,7 @@ export default class NoneTypeWidget extends TypeWidget {
|
|||||||
|
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
|
|
||||||
|
super.doRender();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -36,5 +36,7 @@ export default class ProtectedSessionTypeWidget extends TypeWidget {
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
super.doRender();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,21 +4,12 @@ const TPL = `
|
|||||||
<div class="note-detail-read-only-code note-detail-printable">
|
<div class="note-detail-read-only-code note-detail-printable">
|
||||||
<style>
|
<style>
|
||||||
.note-detail-read-only-code {
|
.note-detail-read-only-code {
|
||||||
position: relative;
|
|
||||||
min-height: 50px;
|
min-height: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.note-detail-read-only-code-content {
|
.note-detail-read-only-code-content {
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.edit-code-note-button {
|
|
||||||
position: absolute;
|
|
||||||
top: 5px;
|
|
||||||
right: 10px;
|
|
||||||
font-size: 130%;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<pre class="note-detail-read-only-code-content"></pre>
|
<pre class="note-detail-read-only-code-content"></pre>
|
||||||
@ -30,6 +21,8 @@ export default class ReadOnlyCodeTypeWidget extends TypeWidget {
|
|||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.$content = this.$widget.find('.note-detail-read-only-code-content');
|
this.$content = this.$widget.find('.note-detail-read-only-code-content');
|
||||||
|
|
||||||
|
super.doRender();
|
||||||
}
|
}
|
||||||
|
|
||||||
async doRefresh(note) {
|
async doRefresh(note) {
|
||||||
|
@ -183,6 +183,8 @@ export default class RelationMapTypeWidget extends TypeWidget {
|
|||||||
|
|
||||||
jsPlumb.ready(res);
|
jsPlumb.ready(res);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
super.doRender();
|
||||||
}
|
}
|
||||||
|
|
||||||
async contextMenuHandler(command, originalTarget) {
|
async contextMenuHandler(command, originalTarget) {
|
||||||
|
@ -19,6 +19,8 @@ export default class RenderTypeWidget extends TypeWidget {
|
|||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
this.$noteDetailRenderHelp = this.$widget.find('.note-detail-render-help');
|
this.$noteDetailRenderHelp = this.$widget.find('.note-detail-render-help');
|
||||||
this.$noteDetailRenderContent = this.$widget.find('.note-detail-render-content');
|
this.$noteDetailRenderContent = this.$widget.find('.note-detail-render-content');
|
||||||
|
|
||||||
|
super.doRender();
|
||||||
}
|
}
|
||||||
|
|
||||||
async doRefresh(note) {
|
async doRefresh(note) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user