Fix login page scrolling, dark theme, and language spacing
Facebook Messenger on your desktop, without the Facebook clutter
Brought to you by:
kristoffer-r
Originally created by: kristofferR
Facebook's login page could show nested scrollbars and unreadable text in dark mode. The language selector also sat far below the form because it was pinned to the window bottom.
Reset the login wrapper heights and overflow so the document owns scrolling. Apply a login-specific semantic dark palette at Facebook's nested theme scopes, driven by Carrier's forced or system theme. Keep the language selector in normal flow below the form and retain a scoped fallback for legacy white header bands.
Validation:
cargo fmt, cargo clippy --all-targets -- -D warnings, and cargo test --lib: 340 tests passed.bun run check: 748 tests passed, two existing skips; injection bundles regenerated.Ref [#335]
Originally posted by: coderabbitai[bot]
Action performed
Review finished. > Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.
Originally posted by: chatgpt-codex-connector[bot]
Codex Review Summary
This comment shows the latest Codex review activity on this pull request.
b29a372ℹ️ About Codex in GitHub
[Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@codex review" or "@codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
Originally posted by: chatgpt-codex-connector[bot]
Codex Review: Didn't find any major issues. Already looking forward to the next diff.
Reviewed commit:
3423ef221dℹ️ About Codex in GitHub
[Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Originally posted by: coderabbitai[bot]
<picture>
</picture>
Walkthrough
Login dark styling now uses a scoped attribute instead of changing Facebook’s root theme class. Login layout styles also change scrolling and language-switcher placement. Browser tests cover theme behavior, required controls, and post-login navigation. **Changes: Messenger login page** |Layer / File(s)|Summary| |:---|:---| |**Scoped login theme**
`inject/src/messenger/features/login-tidy.ts`, `src-tauri/inject/messenger.js`, `src-tauri/inject/messenger.css`, `inject/src/messenger/lib/login-layout.browser.test.ts`|Login theme handling toggles `data-carrier-login-dark` based on `wantDark()` and marks light-background elements inside the login column. CSS applies dark theme tokens and colors. Browser tests cover dark, light, and system themes, plus saved-account and PIN/E2EE layouts.| |**Login scrolling and language switcher**
`src-tauri/inject/messenger.css`, `inject/src/messenger/lib/login-layout.browser.test.ts`|Login wrappers clip horizontal overflow while the document retains vertical scrolling. The language switcher moves into normal flow below the login form. Browser checks cover scrolling and switcher spacing.| **Estimated code review effort:** 3 (Moderate) | ~20 minutes **Change:** Bug fix
Merge Risk: <picture>
</picture> Minimal · previous review
3423eThe reviewed login-theme and layout changes have no identified merge-blocking issue; merge after normal checks.
Pre-merge checks: <picture>
</picture> 4 · <picture>
</picture> 1
<picture>
<picture>
</picture> Passed checks: 4 passed
| Check name | Status | Explanation | | :------------------------ | :--------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Title check |  | The title identifies the main login page changes. | | Description check |  | The description covers the problem, changes, and validation. It lacks the AI models section, which is required for non-owner contributors. If applicable, add the model names and versions or state None… | | Linked Issues check |  | Check skipped because no linked issues were found for this pull request. | | Out of Scope Changes check |  | Check skipped because no linked issues were found for this pull request. |
Full details: Description check
**Explanation** The description covers the problem, changes, and validation. It lacks the AI models section, which is required for non-owner contributors. If applicable, add the model names and versions or state None. Reasoning levels are optional.
Full details: Docstring Coverage
**Explanation** Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 5 functions across 3 files. (1 skipped: 1 unsupported.) **Resolution** Write docstrings for the functions missing them to satisfy the coverage threshold.
Finishing Touches
Generate docstrings
- [ ] Commit to this branch - [ ] Create a new PR
Generate unit tests (beta)
- [ ] Commit to this branch - [ ] Create a new PR
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
- [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)
Related
Commit: [3423ef]
Originally posted by: coderabbitai[bot]
Action not completed
Review rate limited. > Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.
Originally posted by: chatgpt-codex-connector[bot]
Codex Review: Didn't find any major issues. 👍
Reviewed commit:
f5ba6b0d6dℹ️ About Codex in GitHub
[Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Originally posted by: chatgpt-codex-connector[bot]
Codex Review: Didn't find any major issues. Breezy!
Reviewed commit:
b29a372d46ℹ️ About Codex in GitHub
[Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Ticket changed by: kristofferR