changeset 61:c8fa2430eab2

Show URL of each feed as a tooltip in the feed selection popup
author Guido Berhoerster <guido+feed-preview@berhoerster.name>
date Mon, 09 Nov 2020 18:07:06 +0100
parents d72fadc79ead
children b1d22243ef1f
files popup/feed-selection.html popup/feed-selection.js
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/popup/feed-selection.html	Wed May 06 13:54:11 2020 +0200
+++ b/popup/feed-selection.html	Mon Nov 09 18:07:06 2020 +0100
@@ -13,7 +13,7 @@
   </head>
   <body>
   <template id="feed-item-template">
-    <div class="panel-list-item" data-href="">
+    <div class="panel-list-item" data-href="" title="">
       <div class="icon"><img src="" alt=""></div>
       <div class="text"></div>
     </div>
--- a/popup/feed-selection.js	Wed May 06 13:54:11 2020 +0200
+++ b/popup/feed-selection.js	Mon Nov 09 18:07:06 2020 +0100
@@ -28,7 +28,9 @@
     let templateElement = document.querySelector('#feed-item-template');
     for (let feed of feeds) {
         let feedNode = document.importNode(templateElement.content, true);
-        feedNode.querySelector('.panel-list-item').dataset.href = feed.href;
+        let listItem = feedNode.querySelector('.panel-list-item')
+        listItem.dataset.href = feed.href;
+        listItem.title = feed.href;
 
         let prefix = (feed.type === 'application/atom+xml') ? 'Atom Feed' :
                 'RSS Feed';