mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-08-09 00:27:21 +00:00
Merge branch 'development' into feat/player-side-drawer
This commit is contained in:
commit
ec23f6764e
4 changed files with 16 additions and 22 deletions
16
package-lock.json
generated
16
package-lock.json
generated
|
|
@ -9,11 +9,11 @@
|
|||
"version": "5.0.0-beta.13",
|
||||
"license": "gpl-2.0",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "7.16.0",
|
||||
"@sentry/browser": "6.13.3",
|
||||
"@stremio/stremio-colors": "5.0.1",
|
||||
"@stremio/stremio-core-web": "0.48.2",
|
||||
"@stremio/stremio-icons": "5.4.1",
|
||||
"@babel/runtime": "7.26.0",
|
||||
"@sentry/browser": "8.42.0",
|
||||
"@stremio/stremio-colors": "5.2.0",
|
||||
"@stremio/stremio-core-web": "0.48.1",
|
||||
"@stremio/stremio-icons": "5.4.0",
|
||||
"@stremio/stremio-video": "0.0.46",
|
||||
"a-color-picker": "1.2.1",
|
||||
"bowser": "2.11.0",
|
||||
|
|
@ -3396,9 +3396,9 @@
|
|||
"integrity": "sha512-Dt3PYmy1DZ473QNs99KYXVWQPHtpIl37VUY0+gCEvvuCqE1fRrZIJtZ9KbysUKonvO7WwdQDztgcW0iGoc1dEA=="
|
||||
},
|
||||
"node_modules/@stremio/stremio-core-web": {
|
||||
"version": "0.48.2",
|
||||
"resolved": "https://registry.npmjs.org/@stremio/stremio-core-web/-/stremio-core-web-0.48.2.tgz",
|
||||
"integrity": "sha512-zkz4ftGMoK9RmIDlGLd/DYLtaXuf4HxnMEN1NduKNXDlYPSJ4Q/b1hCbXrVqVK/nx6s+8X4XyYr9IOwFLaT5ew==",
|
||||
"version": "0.48.1",
|
||||
"resolved": "https://registry.npmjs.org/@stremio/stremio-core-web/-/stremio-core-web-0.48.1.tgz",
|
||||
"integrity": "sha512-bdWxBuuOOC0NdG1Mg60lEhpK7Bw/Ea6D89bRcvIvM3WnJrUpGA4jbx4xWj3KQRM08PM3WWCY9/FzctlWCxFMRg==",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "7.24.1"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,11 +13,11 @@
|
|||
"lint": "eslint src"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/runtime": "7.16.0",
|
||||
"@sentry/browser": "6.13.3",
|
||||
"@stremio/stremio-colors": "5.0.1",
|
||||
"@babel/runtime": "7.26.0",
|
||||
"@sentry/browser": "8.42.0",
|
||||
"@stremio/stremio-colors": "5.2.0",
|
||||
"@stremio/stremio-core-web": "0.48.2",
|
||||
"@stremio/stremio-icons": "5.4.1",
|
||||
"@stremio/stremio-icons": "5.4.0",
|
||||
"@stremio/stremio-video": "0.0.46",
|
||||
"a-color-picker": "1.2.1",
|
||||
"bowser": "2.11.0",
|
||||
|
|
|
|||
|
|
@ -10,14 +10,8 @@ const TooltipItem = React.memo(({ className, active, label, position, margin, pa
|
|||
|
||||
const [style, setStyle] = React.useState(null);
|
||||
|
||||
const onTransitionEnd = React.useCallback(() => {
|
||||
if (!active) {
|
||||
setStyle(null);
|
||||
}
|
||||
}, [active]);
|
||||
|
||||
React.useEffect(() => {
|
||||
if (!ref.current) return setStyle(null);
|
||||
if (!ref.current || !active) return setStyle(null);
|
||||
|
||||
const tooltipBounds = ref.current.getBoundingClientRect();
|
||||
const parentBounds = parent.getBoundingClientRect();
|
||||
|
|
@ -47,7 +41,7 @@ const TooltipItem = React.memo(({ className, active, label, position, margin, pa
|
|||
}, [active, position, margin, parent, label]);
|
||||
|
||||
return (
|
||||
<div ref={ref} className={classNames(className, styles['tooltip-item'], { 'active': active })} style={style} onTransitionEnd={onTransitionEnd}>
|
||||
<div ref={ref} className={classNames(className, styles['tooltip-item'], { 'active': active })} style={style}>
|
||||
{ label }
|
||||
</div>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -27,8 +27,8 @@ const Item = ({ url }: Props) => {
|
|||
|
||||
const handleDelete = useCallback(() => {
|
||||
deleteServerUrl(url);
|
||||
selectServerUrl(DEFAULT_STREAMING_SERVER_URL);
|
||||
}, [url]);
|
||||
selected && selectServerUrl(DEFAULT_STREAMING_SERVER_URL);
|
||||
}, [url, selected]);
|
||||
|
||||
const handleSelect = useCallback(() => {
|
||||
selectServerUrl(url);
|
||||
|
|
|
|||
Loading…
Reference in a new issue