mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
sharing WIP
This commit is contained in:
parent
402e29d6dc
commit
7c885a8b76
@ -6,11 +6,11 @@ body {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-direction: row-reverse;
|
||||
}
|
||||
|
||||
#menu {
|
||||
padding: 20px;
|
||||
padding: 25px;
|
||||
flex-basis: 0;
|
||||
flex-grow: 1;
|
||||
overflow: auto;
|
||||
|
@ -94,7 +94,7 @@ function getContent(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) {
|
||||
|
@ -12,21 +12,21 @@
|
||||
</head>
|
||||
<body>
|
||||
<div id="layout">
|
||||
<% if (subRoot.hasChildren()) { %>
|
||||
<button id="menuButton"></button>
|
||||
|
||||
<div id="menu">
|
||||
<%- include('share-tree-item', {note: subRoot, activeNote: note}) %>
|
||||
</div>
|
||||
<% } %>
|
||||
|
||||
<div id="main">
|
||||
<h1 id="title"><%= note.title %></h1>
|
||||
|
||||
<div id="content">
|
||||
<div class="ck-content"><%- content %></div>
|
||||
<div id="content" class="note-<%= note.type %> <% if (note.type === 'text') { %>ck-content<% } %>">
|
||||
<%- content %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<% if (subRoot.hasChildren()) { %>
|
||||
<button id="menuButton"></button>
|
||||
|
||||
<div id="menu">
|
||||
<%- include('share-tree-item', {note: subRoot, activeNote: note}) %>
|
||||
</div>
|
||||
<% } %>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user