Skip to content

Build your personal knowledge base with Trilium Notes

share improvements

zadamfada3fe6233f
diff --git a/src/public/stylesheets/share.css b/src/public/stylesheets/share.css
index 65d0e1b6f5..61cc3b7df8 100644
--- a/src/public/stylesheets/share.css
+++ b/src/public/stylesheets/share.css
@@ -32,15 +32,18 @@ body {
#main {
flex-basis: 0;
flex-grow: 3;
+ overflow: auto;
+ padding: 10px 20px 20px 20px;
}
-#title {
- margin: 0;
- padding: 20px 20px 0 20px;
+#parent-link {
+ float: right;
+ margin-top: 20px;
}
-#content {
- padding: 20px;
+#title {
+ margin: 0;
+ padding-top: 10px;
}
img {
@@ -107,6 +110,7 @@ iframe.pdf-view {
display: inline-flex;
flex-wrap: wrap;
padding: 0;
+ margin-top: 5px;
}
#child-links.list ul li {
diff --git a/src/views/share/page.ejs b/src/views/share/page.ejs
index 87e869bb82..0ecbf0a0df 100644
--- a/src/views/share/page.ejs
+++ b/src/views/share/page.ejs
@@ -19,19 +19,19 @@
<body>
<div id="layout">
<div id="main">
- <br>
<% if (note.parents[0].noteId !== 'share' && note.parents.length !== 0) { %>
<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>
<% } %>
+
<h1 id="title"><%= note.title %></h1>
<% if (note.type === 'book') { %>
<% } else if (isEmpty) { %>
<p>This note has no content.</p>
<% } 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 %>
</div>
<% } %>