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;
|
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;
|
||||||
|
@ -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) {
|
||||||
|
@ -12,21 +12,21 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="layout">
|
<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">
|
<div id="main">
|
||||||
<h1 id="title"><%= note.title %></h1>
|
<h1 id="title"><%= note.title %></h1>
|
||||||
|
|
||||||
<div id="content">
|
<div id="content" class="note-<%= note.type %> <% if (note.type === 'text') { %>ck-content<% } %>">
|
||||||
<div class="ck-content"><%- content %></div>
|
<%- content %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<% if (subRoot.hasChildren()) { %>
|
||||||
|
<button id="menuButton"></button>
|
||||||
|
|
||||||
|
<div id="menu">
|
||||||
|
<%- include('share-tree-item', {note: subRoot, activeNote: note}) %>
|
||||||
|
</div>
|
||||||
|
<% } %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user