Skip to content

fix: center the phone sign-in page and allow paste in Settings - #61

Merged
MaxAnderson95 merged 1 commit into
mainfrom
fix/sign-in-phone-layout
Oct 9, 2026
Merged

MaxAnderson95 merged 1 commit into
mainfrom
fix/sign-in-phone-layout

Conversation

@MaxAnderson95

Copy link
Copy Markdown
Owner

Two bugs from v0.4.0. On a phone, the new sign-in page pushed the password form off the left edge and the Tally wordmark off the right. In the Mac app's Settings window, Cmd+V did nothing, so the new password and token fields could not be pasted into.

  • Phone sign-in layout (web/src/style.css): the 720px media query set grid-area: brand on every .wordmark. Inside the sign-in page's grid that created a stray named area and an extra implicit column. The rule now targets .masthead .wordmark only.
  • Paste in Settings (Sources/TallyApp/TallyApp.swift): Tally uses the accessory activation policy and installed no main menu, so text fields never received the Cut, Copy, Paste, Select All, Undo, and Redo key equivalents. installEditMenu() now sets a main menu with a standard Edit menu at launch. The menu bar stays hidden for accessory apps.

Verification: Playwright with mocked API responses at 320x640 and 390x844 in dark mode. The wordmark and sign-in panel are now centered (390px: both at x=35, width 320) with no horizontal overflow, and the signed-in masthead still places the wordmark, actions, and tabs correctly. Swift tests (103) and web tests (21) pass. Paste is not yet verified by hand in the rebuilt app.

Originally created in OpenCode session ID: ses_edde72b75ffenF4F0i3R02Dlpd using model: anthropic/claude-opus-5-5

On phones the sign-in page pushed the password form off the left edge and the wordmark off the right, because the 720px rule gave every .wordmark the masthead's grid-area: brand, which created a stray named grid area inside the sign-in grid. The rule is now scoped to .masthead .wordmark. Separately, Tally runs as an accessory app with no main menu, so Cmd+X, Cmd+C, Cmd+V, Cmd+A, and Cmd+Z never reached Settings text fields; the app now installs a hidden Edit menu that supplies those key equivalents.

OpenCode session ID: ses_edde72b75ffenF4F0i3R02Dlpd using model: anthropic/claude-opus-5-5
@MaxAnderson95
MaxAnderson95 merged commit 2f42af2 into main Oct 9, 2026
4 checks passed
@MaxAnderson95
MaxAnderson95 deleted the fix/sign-in-phone-layout branch October 9, 2026 23:41
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