mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
share improvements
This commit is contained in:
parent
d97e454463
commit
fada3fe623
@ -32,15 +32,18 @@ body {
|
|||||||
#main {
|
#main {
|
||||||
flex-basis: 0;
|
flex-basis: 0;
|
||||||
flex-grow: 3;
|
flex-grow: 3;
|
||||||
|
overflow: auto;
|
||||||
|
padding: 10px 20px 20px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#parent-link {
|
||||||
|
float: right;
|
||||||
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#title {
|
#title {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 20px 20px 0 20px;
|
padding-top: 10px;
|
||||||
}
|
|
||||||
|
|
||||||
#content {
|
|
||||||
padding: 20px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
@ -107,6 +110,7 @@ iframe.pdf-view {
|
|||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
margin-top: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#child-links.list ul li {
|
#child-links.list ul li {
|
||||||
|
@ -19,19 +19,19 @@
|
|||||||
<body>
|
<body>
|
||||||
<div id="layout">
|
<div id="layout">
|
||||||
<div id="main">
|
<div id="main">
|
||||||
<br>
|
|
||||||
<% if (note.parents[0].noteId !== 'share' && note.parents.length !== 0) { %>
|
<% if (note.parents[0].noteId !== 'share' && note.parents.length !== 0) { %>
|
||||||
<nav id="parent-link">
|
<nav id="parent-link">
|
||||||
Parent note: <a href="<%= note.parents[0].noteId %>" class="type-<% note.type %>"><%= note.parents[0].title %></a>
|
parent: <a href="<%= note.parents[0].noteId %>" class="type-<% note.type %>"><%= note.parents[0].title %></a>
|
||||||
</nav>
|
</nav>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
<h1 id="title"><%= note.title %></h1>
|
<h1 id="title"><%= note.title %></h1>
|
||||||
|
|
||||||
<% if (note.type === 'book') { %>
|
<% if (note.type === 'book') { %>
|
||||||
<% } else if (isEmpty) { %>
|
<% } else if (isEmpty) { %>
|
||||||
<p>This note has no content.</p>
|
<p>This note has no content.</p>
|
||||||
<% } else { %>
|
<% } else { %>
|
||||||
<div id="content" class="type-<%= note.type %><% if (note.type === 'text') { %>ck-content<% } %>">
|
<div id="content" class="type-<%= note.type %><% if (note.type === 'text') { %> ck-content<% } %>">
|
||||||
<%- content %>
|
<%- content %>
|
||||||
</div>
|
</div>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user