sharing WIP

This commit is contained in:
zadam 2021-12-21 22:01:06 +01:00
parent 402e29d6dc
commit 7c885a8b76
3 changed files with 13 additions and 13 deletions

View File

@ -6,11 +6,11 @@ body {
max-width: 1200px; max-width: 1200px;
margin: 0 auto; margin: 0 auto;
display: flex; display: flex;
flex-direction: row; flex-direction: row-reverse;
} }
#menu { #menu {
padding: 20px; padding: 25px;
flex-basis: 0; flex-basis: 0;
flex-grow: 1; flex-grow: 1;
overflow: auto; overflow: auto;

View File

@ -94,7 +94,7 @@ function getContent(note) {
content = '<p>This note type cannot be displayed.</p>' + getChildrenList(note); content = '<p>This note type cannot be displayed.</p>' + getChildrenList(note);
} }
return `<div class="type-${note.type}">${content}</content>`; return content;
} }
function register(router) { function register(router) {

View File

@ -12,6 +12,14 @@
</head> </head>
<body> <body>
<div id="layout"> <div id="layout">
<div id="main">
<h1 id="title"><%= note.title %></h1>
<div id="content" class="note-<%= note.type %> <% if (note.type === 'text') { %>ck-content<% } %>">
<%- content %>
</div>
</div>
<% if (subRoot.hasChildren()) { %> <% if (subRoot.hasChildren()) { %>
<button id="menuButton"></button> <button id="menuButton"></button>
@ -19,14 +27,6 @@
<%- include('share-tree-item', {note: subRoot, activeNote: note}) %> <%- include('share-tree-item', {note: subRoot, activeNote: note}) %>
</div> </div>
<% } %> <% } %>
<div id="main">
<h1 id="title"><%= note.title %></h1>
<div id="content">
<div class="ck-content"><%- content %></div>
</div>
</div>
</div> </div>
<script> <script>