diff --git a/src/public/app/services/link.js b/src/public/app/services/link.js index ceaf73ab2..99ce1bfe3 100644 --- a/src/public/app/services/link.js +++ b/src/public/app/services/link.js @@ -72,7 +72,7 @@ function goToLink(e) { e.preventDefault(); e.stopPropagation(); - const $link = $(e.target).closest("a"); + const $link = $(e.target).closest("a,.block-link"); const notePath = getNotePathFromLink($link); diff --git a/src/public/app/services/note_list_renderer.js b/src/public/app/services/note_list_renderer.js index 1a4ea8975..10c0b8fc6 100644 --- a/src/public/app/services/note_list_renderer.js +++ b/src/public/app/services/note_list_renderer.js @@ -20,6 +20,7 @@ const TPL = ` .note-list.grid-view .note-book-card { flex-basis: 300px; + border: 1px solid transparent; } .note-list.grid-view .note-expander { @@ -30,6 +31,12 @@ const TPL = ` max-height: 300px; } + .note-list.grid-view .note-book-card:hover { + cursor: pointer; + border: 1px solid var(--main-border-color); + background: var(--more-accented-background-color); + } + .note-book-card { border-radius: 10px; background-color: var(--accented-background-color); @@ -310,6 +317,7 @@ class NoteListRenderer { const $expander = $(''); const {$renderedAttributes} = await attributeRenderer.renderNormalAttributes(note); + const notePath = this.parentNote.noteId + '/' + note.noteId; const $card = $('