Skip to content

Commit

Permalink
don't show the actionbar for images on images smaller than 100px
Browse files Browse the repository at this point in the history
  • Loading branch information
blackforestboi committed Jun 9, 2024
1 parent 639c5f6 commit 7e5996a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/search-injection/img-action-buttons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,10 @@ export const handleRenderImgActionButtons = async (
imageUrl = element.src
}

if (element.naturalWidth < 100 || element.naturalHeight < 100) {
continue
}

if (imageUrl == null) {
continue
}
Expand Down

0 comments on commit 7e5996a

Please sign in to comment.