Skip to content

Commit

Permalink
Merge pull request #507 from iorate/safari-show-action-after-translat…
Browse files Browse the repository at this point in the history
…e-this-page

fix(safari,google): bring action after "translate this page" to front
  • Loading branch information
iorate authored Jul 8, 2024
2 parents af221a8 + 6d200cc commit 832f991
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/scripts/search-engines/google-desktop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ const regularEntryHandler: Pick<
root,
actionPosition: (target) => {
if (target.matches(".eFM0qc")) {
if (process.env.BROWSER === "safari") {
target.style.zIndex = "1";
}
return insertActionBeforeMenu(target);
}
if (target.matches(".HGLrXd, .TbwUpd")) {
Expand Down

0 comments on commit 832f991

Please sign in to comment.