From a9e033c8c55bd613667465e8775cd6986b48372c Mon Sep 17 00:00:00 2001 From: Tamas Czirjak <54854902+tamas-czirjak-epam@users.noreply.github.com> Date: Wed, 21 Oct 2020 17:20:00 +0200 Subject: [PATCH 1/2] Convert title into URL if exists --- dist/google-keep-card.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dist/google-keep-card.js b/dist/google-keep-card.js index 31fd66c..03e8adf 100644 --- a/dist/google-keep-card.js +++ b/dist/google-keep-card.js @@ -123,6 +123,9 @@ class GoogleKeepCard extends LitElement { font-size: 120%; color: ${this.getTextColor()}; } + p.noteTitle > a, p.noteTitle > a:visited, p.noteTitle > a:link { + color: ${this.getTextColor()}; + } p.noteBody { margin: -3px; } @@ -150,7 +153,7 @@ class GoogleKeepCard extends LitElement { renderTextNote(note) { return html`
` } @@ -161,7 +164,7 @@ class GoogleKeepCard extends LitElement { const showChecked = note['checked'].length && show.includes('checked'); return html`${note['title']}
+${(typeof note['url']!= "undefined") ? html`${note['title']}` : html`${note['title']}` }
${showUnchecked ? this.renderUncheckedList(note) : html``} ${showUnchecked && showChecked ? html`${(typeof note['url']!= "undefined") ? html`${note['title']}` : html`${note['title']}` }
${note['lines'].map(line => this.renderLine(line))}