Skip to content

Commit

Permalink
Added search button to direct search from meta preview
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaarrg committed Feb 25, 2025
1 parent 4c57859 commit 4c07e8d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "stremio",
"displayName": "Stremio",
"version": "5.0.0-beta.18",
"subVersion": "26",
"subVersion": "27",
"author": "Smart Code OOD",
"private": true,
"license": "gpl-2.0",
Expand Down
13 changes: 13 additions & 0 deletions src/components/MetaPreview/MetaPreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,19 @@ const MetaPreview = ({ className, compact, name, logo, background, runtime, rele
:
null
}
{
typeof name === 'string' ?
<ActionButton
className={styles['action-button']}
icon={'search'}
label={'Search'}
tooltip={true}
tabIndex={compact ? -1 : 0}
href={'#/search?query=' + name}
/>
:
null
}
{
typeof showHref === 'string' && compact ?
<ActionButton
Expand Down

0 comments on commit 4c07e8d

Please sign in to comment.