Skip to content

Commit bb601cf

Browse files
committed
[chrome] add icons to text select contextmenu
1 parent 73ea932 commit bb601cf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/chrome/src/IsolatedFrame.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import {
3131
iconAdd,
3232
iconCopy,
3333
iconSave,
34+
iconSearch,
3435
} from "./icons";
3536

3637
import type { Chromebound, Framebound } from "../../inject/src/types";
@@ -656,6 +657,7 @@ function pageContextItems(
656657
return [
657658
{
658659
label: "Search",
660+
icon: iconSearch,
659661
action: () => {
660662
const query = selection.toString();
661663
if (query) {
@@ -669,6 +671,7 @@ function pageContextItems(
669671
},
670672
{
671673
label: "Copy",
674+
icon: iconCopy,
672675
action: () => {
673676
navigator.clipboard.writeText(selection.toString());
674677
},

0 commit comments

Comments
 (0)