chore(OneClient): Change Default Resolution

This commit is contained in:
Jacob 2025-12-29 16:46:31 +08:00 • committed by Wyvest
parent 439f426bcd
commit ac386301bb
2 changed files with 8 additions and 8 deletions

View file

@ -76,10 +76,10 @@ function RouteComponent() {
min={1}
onChange={(e) => {
const width = Math.max(1, Number(e.currentTarget.value));
updateProfile({ res: { width, height: profile.res?.height ?? 720 } });
updateProfile({ res: { width, height: profile.res?.height ?? 480 } });
}}
type="number"
value={profile.res?.width ?? 1280}
value={profile.res?.width ?? 640}
/>
<XIcon className="size-4 self-center" />
<TextField
@ -87,10 +87,10 @@ function RouteComponent() {
min={1}
onChange={(e) => {
const height = Math.max(1, Number(e.currentTarget.value));
updateProfile({ res: { width: profile.res?.width ?? 1280, height } });
updateProfile({ res: { width: profile.res?.width ?? 640, height } });
}}
type="number"
value={profile.res?.height ?? 720}
value={profile.res?.height ?? 480}
/>
</div>
</SettingsRow>

View file

@ -80,10 +80,10 @@ export function GameSettings() {
min={1}
onChange={(e) => {
const width = Math.max(1, Number(e.currentTarget.value));
setSetting('res', { width, height: gameSettings.res?.height ?? 720 });
setSetting('res', { width, height: gameSettings.res?.height ?? 480 });
}}
type="number"
value={gameSettings.res?.width ?? 1280}
value={gameSettings.res?.width ?? 640}
/>
<XIcon className="size-4 self-center" />
<TextField
@ -91,10 +91,10 @@ export function GameSettings() {
min={1}
onChange={(e) => {
const height = Math.max(1, Number(e.currentTarget.value));
setSetting('res', { width: gameSettings.res?.width ?? 1280, height });
setSetting('res', { width: gameSettings.res?.width ?? 640, height });
}}
type="number"
value={gameSettings.res?.height ?? 720}
value={gameSettings.res?.height ?? 480}
/>
</div>
</SettingsRow>