mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Code review suggestions
This commit is contained in:
parent
e038055b47
commit
55d57eedcc
3 changed files with 5 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
||||||
import type { ProcessPriorityClass, ServerConfiguration, TrickplayScanBehavior } from '@jellyfin/sdk/lib/generated-client';
|
import type { ProcessPriorityClass, ServerConfiguration, TrickplayScanBehavior } from '@jellyfin/sdk/lib/generated-client';
|
||||||
import React, { FunctionComponent, useCallback, useEffect, useRef } from 'react';
|
import React, { type FunctionComponent, useCallback, useEffect, useRef } from 'react';
|
||||||
|
|
||||||
import globalize from '../../../../scripts/globalize';
|
import globalize from '../../../../scripts/globalize';
|
||||||
import Page from '../../../../components/Page';
|
import Page from '../../../../components/Page';
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import React, { FunctionComponent } from 'react';
|
import React, { type FunctionComponent } from 'react';
|
||||||
import globalize from '../../../../scripts/globalize';
|
import globalize from '../../../../scripts/globalize';
|
||||||
|
|
||||||
type IProps = {
|
type IProps = {
|
||||||
|
@ -22,9 +22,9 @@ const LinkTrickplayAcceleration: FunctionComponent<IProps> = ({ className, title
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
dangerouslySetInnerHTML={createLinkElement({
|
dangerouslySetInnerHTML={createLinkElement({
|
||||||
className: className,
|
className,
|
||||||
title: globalize.translate(title),
|
title: globalize.translate(title),
|
||||||
href: href
|
href
|
||||||
})}
|
})}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|
|
@ -1779,9 +1779,7 @@ export default function (view) {
|
||||||
showOsd();
|
showOsd();
|
||||||
|
|
||||||
const item = currentItem;
|
const item = currentItem;
|
||||||
let ticks = currentRuntimeTicks;
|
const ticks = currentRuntimeTicks * value / 100;
|
||||||
ticks /= 100;
|
|
||||||
ticks *= value;
|
|
||||||
|
|
||||||
if (trickplayResolution && item?.Trickplay) {
|
if (trickplayResolution && item?.Trickplay) {
|
||||||
return updateTrickplayBubbleHtml(
|
return updateTrickplayBubbleHtml(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue