fixes and tweaks - readonly bar is smaller and on the right

This commit is contained in:
zadam
2020-08-27 14:54:56 +02:00
parent c8af250caa
commit 31d85ed8cc
7 changed files with 46 additions and 22 deletions

View File

@@ -1,4 +1,5 @@
import ws from "./ws.js";
import linkService from "./link.js";
function renderAttribute(attribute, $container, renderIsInheritable) {
const isInheritable = renderIsInheritable && attribute.isInheritable ? `(inheritable)` : '';
@@ -48,11 +49,15 @@ function formatValue(val) {
}
function createNoteLink(noteId) {
return $("<a>", {
const $link = $("<a>", {
href: '#' + noteId,
class: 'reference-link',
'data-note-path': noteId
});
linkService.loadReferenceLinkTitle(noteId, $link);
return $link;
}
export default {