Skip to content

Commit e40f27a

Browse files
committed
feat(bookmark.ts): limit bookmark search card height
1 parent bdeab6a commit e40f27a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/bookmark.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,14 @@ class BookmarkSearch {
7575
}
7676

7777
private createCard(response: any[]) {
78-
const card = '<div id="cloudopt-bookmark"><div class="cloudopt-bookmark-head">BookMark Search<a id="cloudopt-bookmark-close" href="#"><img class="cloudopt-icon" src="https://cdn.cloudopt.net/extensions/resource/close.png" /></a><a href="https://www.cloudopt.net" target="_blank"><img src="https://cdn.cloudopt.net/extensions/resource/logo.png"></a></div></div>'
78+
const card = '<div id="cloudopt-bookmark"><div class="cloudopt-bookmark-head">BookMark Search<a id="cloudopt-bookmark-close" href="#"><img class="cloudopt-icon" src="https://cdn.cloudopt.net/extensions/resource/close.png" /></a><a href="https://www.cloudopt.net" target="_blank"><img src="https://cdn.cloudopt.net/extensions/resource/logo.png"></a></div><div id="cloudopt-bookmark-content" style="max-height: 1200px; overflow: auto"></div></div>'
7979
if (response.length > 0) {
8080
$(card).appendTo(this.innerClass)
8181
response.forEach((item) => {
8282
if (item.url && item.url.indexOf('place:') < 0) {
8383
const a = [item.url, item.title, item.url].map<string>(sanitize)
8484
const html = `<div class="cloudopt-bookmark-li"><a href="${a[0]}" target="_blank">${a[1]}</a><p>${a[2]}</p></div>`
85-
$(html).appendTo('#cloudopt-bookmark')
85+
$(html).appendTo('#cloudopt-bookmark-content')
8686
}
8787
})
8888
}

0 commit comments

Comments
 (0)