Skip to content

Commit 23a1767

Browse files
committed
[chrome] delete redundant "create bookmark" button
1 parent 544123a commit 23a1767

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

packages/chrome/src/components/BookmarksStrip.tsx

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,6 @@ export function BookmarksStrip(props: {}, cx: ComponentContext) {
2222
console.log(browser.bookmarks);
2323
return (
2424
<div>
25-
<button
26-
on:click={(e: MouseEvent) => {
27-
let b = createState<BookmarkEntry>({
28-
url: browser.activetab.url.toString(),
29-
title: browser.activetab.title || "Unknown",
30-
favicon: browser.activetab.icon,
31-
});
32-
createMenuCustom(
33-
{
34-
left: e.clientX,
35-
top: e.clientY,
36-
},
37-
<BookmarkPopup bookmark={b} new={true} />
38-
);
39-
}}
40-
>
41-
<Icon icon={iconAdd}></Icon>
42-
<span>create bookmark</span>
43-
</button>
4425
{use(browser.bookmarks).mapEach((b) => (
4526
<button
4627
on:auxclick={(e: MouseEvent) => {
@@ -100,6 +81,7 @@ export function BookmarksStrip(props: {}, cx: ComponentContext) {
10081
BookmarksStrip.style = css`
10182
:scope {
10283
padding: 0.25em;
84+
padding-left: 0.5em;
10385
height: 2em;
10486
display: flex;
10587
gap: 0.5em;

0 commit comments

Comments
 (0)