Skip to content

Commit

Permalink
adjust option order
Browse files Browse the repository at this point in the history
  • Loading branch information
MakinoharaShoko committed Dec 26, 2024
1 parent 94bf354 commit 9d5de64
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions packages/webgal/src/UI/Menu/Options/Display/Display.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,6 @@ export function Display() {
currentChecked={userDataState.optionData.fullScreen}
/>
</NormalOption>
<NormalOption key="textSpeed" title={t('textSpeed.title')}>
<OptionSlider
initValue={userDataState.optionData.textSpeed}
uniqueID={t('textSpeed.title')}
onChange={(event) => {
const newValue = event.target.value;
dispatch(setOptionData({ key: 'textSpeed', value: Number(newValue) }));
setStorage();
}}
/>
</NormalOption>
<NormalOption key="textSize" title={t('textSize.title')}>
<NormalButton
textList={t('textSize.options.small', 'textSize.options.medium', 'textSize.options.large')}
Expand Down Expand Up @@ -84,6 +73,17 @@ export function Display() {
currentChecked={userDataState.optionData.textboxFont}
/>
</NormalOption>
<NormalOption key="textSpeed" title={t('textSpeed.title')}>
<OptionSlider
initValue={userDataState.optionData.textSpeed}
uniqueID={t('textSpeed.title')}
onChange={(event) => {
const newValue = event.target.value;
dispatch(setOptionData({ key: 'textSpeed', value: Number(newValue) }));
setStorage();
}}
/>
</NormalOption>
<NormalOption key="textboxOpacity" title={t('textboxOpacity.title')}>
<OptionSlider
initValue={userDataState.optionData.textboxOpacity}
Expand Down

0 comments on commit 9d5de64

Please sign in to comment.