mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix render type non-scrolling
This commit is contained in:
parent
c9b2ff05e9
commit
ca0e36ea81
@ -49,7 +49,7 @@ const TPL = `
|
||||
title="Zoom Out"></button>
|
||||
</div>
|
||||
|
||||
<div class="note-detail-book-help alert alert-warning">
|
||||
<div class="note-detail-book-help alert alert-warning" style="margin: 50px; padding: 20px;">
|
||||
This note of type Book doesn't have any child notes so there's nothing to display. See <a href="https://github.com/zadam/trilium/wiki/Book-note">wiki</a> for details.
|
||||
</div>
|
||||
|
||||
|
@ -3,13 +3,19 @@ import TypeWidget from "./type_widget.js";
|
||||
|
||||
const TPL = `
|
||||
<div class="note-detail-render note-detail-printable">
|
||||
<div class="note-detail-render-help alert alert-warning">
|
||||
<style>
|
||||
.note-detail-render {
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="note-detail-render-help alert alert-warning" style="margin: 50px; padding: 20px;">
|
||||
<p><strong>This help note is shown because this note of type Render HTML doesn't have required relation to function properly.</strong></p>
|
||||
|
||||
<p>Render HTML note type is used for <a href="https://github.com/zadam/trilium/wiki/Scripts">scripting</a>. In short, you have a HTML code note (optionally with some JavaScript) and this note will render it. To make it work, you need to define a relation (in <a class="show-attributes-button">Attributes dialog</a>) called "renderNote" pointing to the HTML note to render. Once that's defined you can click on the "play" button to render.</p>
|
||||
</div>
|
||||
|
||||
<div class="note-detail-render-content"></div>
|
||||
<div class="note-detail-render-content" style="height: 100%; overflow: auto;"></div>
|
||||
</div>`;
|
||||
|
||||
export default class RenderTypeWidget extends TypeWidget {
|
||||
|
@ -310,12 +310,6 @@ div.ui-tooltip {
|
||||
background-color: var(--active-item-background-color) !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.note-detail-render {
|
||||
min-height: 500px;
|
||||
}
|
||||
|
||||
.CodeMirror {
|
||||
font-family: "Liberation Mono", "Lucida Console", monospace;
|
||||
height: auto;
|
||||
@ -456,11 +450,6 @@ table.promoted-attributes-in-tooltip td, table.promoted-attributes-in-tooltip th
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.note-detail-render-help, .note-detail-book-help {
|
||||
margin: 50px;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.tooltip {
|
||||
font-size: var(--main-font-size) !important;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user