@@ -177,9 +177,7 @@
diff --git a/popup/search-results.css b/popup/search-results.css
index 1dd09577..960bac83 100755
--- a/popup/search-results.css
+++ b/popup/search-results.css
@@ -48,14 +48,17 @@ body.search-results-shown {
}
.search-result-title {
- font-size: 1.2em;
- font-weight: 600;
margin-bottom: .5em;
display: block;
color: #666;
overflow-wrap: break-word;
}
+.search-result-title span {
+ font-size: 1.2em;
+ font-weight: 600;
+}
+
.search-result:hover .search-result-title {
color: initial;
}
diff --git a/popup/search-results.js b/popup/search-results.js
index ab05596b..e99008cb 100755
--- a/popup/search-results.js
+++ b/popup/search-results.js
@@ -290,13 +290,14 @@ window.addEventListener('showStyles:done', function _() {
id: ENTRY_ID_PREFIX + result.id,
});
- const displayedName = result.name.length < 300 ? result.name : result.name.slice(0, 300) + '...';
Object.assign($('.search-result-title', entry), {
- textContent: tWordBreak(displayedName),
onclick: handleEvent.openURLandHide,
href: searchAPI.BASE_URL + result.url
});
+ const displayedName = result.name.length < 300 ? result.name : result.name.slice(0, 300) + '...';
+ $('.search-result-title span', entry).textContent = tWordBreak(displayedName);
+
const screenshot = $('.search-result-screenshot', entry);
let screenshotUrl = result.screenshot_url;
if (screenshotUrl === null) {