Skip to content

Commit

Permalink
feat: update speed action in replay
Browse files Browse the repository at this point in the history
  • Loading branch information
wqcstrong committed Oct 24, 2024
1 parent a76bedf commit f8c3ba4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/pages/Replay/PlayControl/components/Actions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,13 @@ export const Actions = memo(() => {
<Space size="small" className="right-actions">
<Select
size="middle"
variant="borderless"
defaultValue={speed}
placeholder={t('replay.speed')}
style={{ width: 65 }}
suffixIcon={null}
style={{ width: 70 }}
labelRender={({ label, value }) => {
if (value === 1) return t('replay.speed');
return label;
}}
options={[
{ label: '0.5x', value: 0.5 },
{ label: '1.0x', value: 1 },
Expand Down

0 comments on commit f8c3ba4

Please sign in to comment.