mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-27 05:38:09 -05:00
Invert stick / motion sens order to match in-game
This commit is contained in:
@@ -338,11 +338,11 @@ function SensSelects({
|
||||
return (
|
||||
<div className="stack horizontal md">
|
||||
<div>
|
||||
<Label htmlFor="stickSens">{t("user:stickSens")}</Label>
|
||||
<Label htmlFor="motionSens">{t("user:motionSens")}</Label>
|
||||
<select
|
||||
id="stickSens"
|
||||
name="stickSens"
|
||||
defaultValue={parentRouteData.stickSens ?? undefined}
|
||||
id="motionSens"
|
||||
name="motionSens"
|
||||
defaultValue={parentRouteData.motionSens ?? undefined}
|
||||
className="u-edit__sens-select"
|
||||
>
|
||||
<option value="">{"-"}</option>
|
||||
@@ -355,11 +355,11 @@ function SensSelects({
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<Label htmlFor="motionSens">{t("user:motionSens")}</Label>
|
||||
<Label htmlFor="stickSens">{t("user:stickSens")}</Label>
|
||||
<select
|
||||
id="motionSens"
|
||||
name="motionSens"
|
||||
defaultValue={parentRouteData.motionSens ?? undefined}
|
||||
id="stickSens"
|
||||
name="stickSens"
|
||||
defaultValue={parentRouteData.stickSens ?? undefined}
|
||||
className="u-edit__sens-select"
|
||||
>
|
||||
<option value="">{"-"}</option>
|
||||
|
||||
@@ -160,8 +160,13 @@ function ExtraInfos() {
|
||||
|
||||
const motionSensText =
|
||||
typeof data.motionSens === "number"
|
||||
? ` / ${t("user:motion")} ${rawSensToString(data.motionSens)}`
|
||||
: "";
|
||||
? `${t("user:motion")} ${rawSensToString(data.motionSens)}`
|
||||
: null;
|
||||
|
||||
const stickSensText =
|
||||
typeof data.stickSens === "number"
|
||||
? `${t("user:stick")} ${rawSensToString(data.stickSens)}`
|
||||
: null;
|
||||
|
||||
if (
|
||||
!data.inGameName &&
|
||||
@@ -191,8 +196,7 @@ function ExtraInfos() {
|
||||
{typeof data.stickSens === "number" && (
|
||||
<div className="u__extra-info">
|
||||
<span className="u__extra-info__heading">{t("user:sens")}</span>{" "}
|
||||
{t("user:stick")} {rawSensToString(data.stickSens)}
|
||||
{motionSensText}
|
||||
{[motionSensText, stickSensText].filter(Boolean).join(" / ")}
|
||||
</div>
|
||||
)}
|
||||
{data.plusTier && (
|
||||
|
||||
Reference in New Issue
Block a user