Skip to content

fix(mobile): put setting resets on the control's inner side - #270

Merged
nixuuu merged 1 commit into
devfrom
fix/mobile-reset-side
Nov 6, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/mobile-reset-side

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 6, 2026

Copy link
Copy Markdown
Member

Mobile settings put the reset button at the far right of a setting, after its control. On the web the reset sits on the control's inner side, with its space reserved, so nothing moves when it appears.

Change

  • SettingsRow (apps/mobile/src/features/settings/SettingsGroup.tsx):
    • an inline control (switch, or wide layout) shows the reset before it;
    • a full-width control below the title shows the reset to its left, in the same row;
    • a row without a control keeps the reset in the title row.
    • The reset (ResetSetting) keeps its space while hidden, as before.
  • Turn activity: the "While working" and "After the turn" resets use the same reserved ResetSetting before the segmented control. They no longer add a button to the title row only when changed.

Checked: typecheck, lint, format:check, expo lint. The device check is on a preview APK on a Galaxy Z Fold, since the Mac emulators are out of disk space.

Copy audit (§8): no UI text changes.

Fixes: #253
Fixes: #236

nixuuu added a commit that referenced this pull request Nov 6, 2026
Settings in phone landscape put the left safe-area inset inside a
216-point sidebar, squeezing labels and Search. Wide Settings also
opened with an empty detail pane.

The settings sidebar now reserves 256 points plus the left inset.
Section labels stay on one line and use a trailing ellipsis at larger
text sizes. The header follows the column boundary, while the existing
right inset protects the close button and detail content. Wide Settings
defaults to General without changing portrait list-first navigation. The
main app sidebar also adds its left inset outside its intended content
width. SettingsGroup.tsx is unchanged.

Verification:
- Passed `bun install`, `bun run typecheck`, `bun run lint`, `bun run
format:check`, and `bun run --filter @canopy/mobile typecheck`.
- Used T3 device tools with an iPhone 17 Pro Max simulator (iOS 26.0):
portrait, both landscape rotations, light/dark, default text size and
accessibility-medium. Confirmed Search and section labels fit, larger
labels use an ellipsis, General opens automatically, portrait
list/section/back navigation works, and the main sidebar preserves its
usable width.
- Checked Canopy_Fold unfolded (Android 16) in light/dark against an
isolated gateway: all default-size section labels fit, General opens,
and selecting Appearance updates the detail pane.
- The iOS simulator's existing gateway was offline, so its layout checks
included the connection error state and local settings. Android loaded
settings from the isolated gateway.
- Removed the temporary Android pairing, gateway, Metro server, forwards
and scratch files; restored simulator appearance/text size. No native
rebuilds, EAS builds, or UI test suites were needed.

Copy audit (§8): no UI text added or changed. Existing labels were
checked at normal and larger text sizes; truncation retains the full
accessible label.

Related: #270
Reset buttons sat at the far right of a setting, after its control. As
on the web, they now sit on the control's inner side: before an inline
control, and before a full-width control below the title, with their
space reserved, so nothing moves when a reset appears. Turn activity
uses the same reserved reset instead of adding a button on change.

Fixes: #253
Fixes: #236
@nixuuu
nixuuu force-pushed the fix/mobile-reset-side branch from 3ef9b52 to 067747d Compare November 6, 2026 22:23
@nixuuu
nixuuu merged commit 5b1700c into dev Nov 6, 2026
9 checks passed
@nixuuu
nixuuu deleted the fix/mobile-reset-side branch November 6, 2026 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant