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 React, { FunctionComponent, useCallback, useEffect, useRef } from 'react';
|
||||
import React, { type FunctionComponent, useCallback, useEffect, useRef } from 'react';
|
||||
|
||||
import globalize from '../../../../scripts/globalize';
|
||||
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';
|
||||
|
||||
type IProps = {
|
||||
|
@ -22,9 +22,9 @@ const LinkTrickplayAcceleration: FunctionComponent<IProps> = ({ className, title
|
|||
return (
|
||||
<div
|
||||
dangerouslySetInnerHTML={createLinkElement({
|
||||
className: className,
|
||||
className,
|
||||
title: globalize.translate(title),
|
||||
href: href
|
||||
href
|
||||
})}
|
||||
/>
|
||||
);
|
||||
|
|
|
@ -1779,9 +1779,7 @@ export default function (view) {
|
|||
showOsd();
|
||||
|
||||
const item = currentItem;
|
||||
let ticks = currentRuntimeTicks;
|
||||
ticks /= 100;
|
||||
ticks *= value;
|
||||
const ticks = currentRuntimeTicks * value / 100;
|
||||
|
||||
if (trickplayResolution && item?.Trickplay) {
|
||||
return updateTrickplayBubbleHtml(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue