From fada3fe6233f199dc7318e5a4c49769af0cb3c38 Mon Sep 17 00:00:00 2001 From: zadam Date: Tue, 28 Dec 2021 13:40:51 +0100 Subject: [PATCH] share improvements --- src/public/stylesheets/share.css | 14 +++++++++----- src/views/share/page.ejs | 6 +++--- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/public/stylesheets/share.css b/src/public/stylesheets/share.css index 65d0e1b6f..61cc3b7df 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; +} + +#parent-link { + float: right; + margin-top: 20px; } #title { margin: 0; - padding: 20px 20px 0 20px; -} - -#content { - padding: 20px; + 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 87e869bb8..0ecbf0a0d 100644 --- a/src/views/share/page.ejs +++ b/src/views/share/page.ejs @@ -19,19 +19,19 @@
-
<% if (note.parents[0].noteId !== 'share' && note.parents.length !== 0) { %> <% } %> +

<%= note.title %>

<% if (note.type === 'book') { %> <% } else if (isEmpty) { %>

This note has no content.

<% } else { %> -
+
<%- content %>
<% } %>