Skip to content

fix(layout): fix Init screen spacing regression from Ionic migration#592

Closed
sahilc0 wants to merge 2 commits into
masterfrom
wt-fix-init-spacing-20260501
Closed

fix(layout): fix Init screen spacing regression from Ionic migration#592
sahilc0 wants to merge 2 commits into
masterfrom
wt-fix-init-spacing-20260501

Conversation

@sahilc0
Copy link
Copy Markdown
Contributor

@sahilc0 sahilc0 commented May 1, 2026

Summary

  • Adds flex: 1 to .content CSS class to fix spacing regression on Init screen
  • Content was bunched at top with excessive whitespace; now properly distributed

Root cause

The Ionic→Tailwind migration (commit a6118aa) replaced IonContent with a plain <div> but didn't add flex: 1 to make .content expand properly in the PageTransition flex container. This broke the justifyContent: flex-end layout in Init.tsx.

Test plan

  • Verified Init screen spacing is fixed (content pushed down, proper gradient distribution)
  • Verified wallet screens still work (auto-login with dev nsec, receive screen)

Summary by CodeRabbit

  • Style
    • Improved content container layout flexibility within flexbox-based layouts so main content better fills available space, reducing unexpected gaps or overflow and improving scrolling/visual balance across screen sizes.

@sahilc0 sahilc0 requested review from bordalix and pietro909 May 1, 2026 15:58
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 1, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: c0355de9-5252-48f7-9d47-b71d320cb5b0

📥 Commits

Reviewing files that changed from the base of the PR and between a64ca5b and 81f37dc.

📒 Files selected for processing (1)
  • src/index.css
✅ Files skipped from review due to trivial changes (1)
  • src/index.css

Walkthrough

A single-line CSS change: flex: 1 was added to the .content rule in src/index.css, altering the element’s flex growth/shrink behavior within flexbox parents. No behavior outside layout, exports, or public APIs were modified.

Changes

CSS Layout Update

Layer / File(s) Summary
Data Shape / Selector
src/index.css
.content rule updated to include flex: 1 (inserts flex sizing declaration).
Styling / Layout Behavior
src/index.css
Adjusts how .content expands/shrinks inside flex containers; other declarations (position, size, overflow, typography) unchanged.
Tests / Docs
N/A
No test or documentation changes in this diff.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Suggested reviewers

  • pietro909
  • bordalix
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: fixing a spacing regression on the Init screen caused by the Ionic migration, which aligns with the single-line CSS fix adding flex: 1 to .content.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch wt-fix-init-spacing-20260501

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


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
Review rate limit: 0/1 reviews remaining, refill in 60 minutes.

Comment @coderabbitai help to get the list of available commands and usage tips.

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 1, 2026

Deploying tmp-boltz-upstream-mainnet-arkade-wallet with  Cloudflare Pages  Cloudflare Pages

Latest commit: 81f37dc
Status: ✅  Deploy successful!
Preview URL: https://21dfa5bf.tmp-boltz-upstream-mainnet-arkade-wallet.pages.dev
Branch Preview URL: https://wt-fix-init-spacing-20260501.tmp-boltz-upstream-mainnet-arkade-wallet.pages.dev

View logs

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 1, 2026

Deploying wallet-bitcoin with  Cloudflare Pages  Cloudflare Pages

Latest commit: 81f37dc
Status: ✅  Deploy successful!
Preview URL: https://f044fef0.wallet-bitcoin.pages.dev
Branch Preview URL: https://wt-fix-init-spacing-20260501.wallet-bitcoin.pages.dev

View logs

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 1, 2026

Deploying wallet-mutinynet with  Cloudflare Pages  Cloudflare Pages

Latest commit: 81f37dc
Status: ✅  Deploy successful!
Preview URL: https://061b9931.arkade-wallet.pages.dev
Branch Preview URL: https://wt-fix-init-spacing-20260501.arkade-wallet.pages.dev

View logs

The Ionic→Tailwind migration replaced IonContent with a plain div but
didn't add flex: 1 to make .content expand in the PageTransition flex
container. This caused the Init screen content to bunch at the top
instead of respecting justifyContent: flex-end.

Adding flex: 1 allows .content to fill available space, fixing the
spacing on the welcome screen.
@sahilc0 sahilc0 force-pushed the wt-fix-init-spacing-20260501 branch from a64ca5b to 4724358 Compare May 1, 2026 16:06
Copy link
Copy Markdown

@arkanaai arkanaai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Arkana Code Review — fix(layout): fix Init screen spacing regression

Scope: CSS-only, single file (src/index.css). Not protocol-critical.

Issue: indentation regression

src/index.css:318overflow-y: auto; lost its 2-space indent. The diff shows the old line had leading spaces but the replacement doesn't:

-  overflow-y: auto;
+overflow-y: auto;

This is a formatting bug — the property should remain indented to match all other properties in the .content block. Please fix before merge.

The actual change (flex: 1) looks correct

Adding flex: 1 to .content is the right fix for making it expand inside a flex parent (PageTransition). The PR description clearly explains the root cause (Ionic→Tailwind migration dropped IonContent flex behavior). No functional concerns.

Verdict

Fix the whitespace on L318 and this is good to go. One-line nit, otherwise 👍.

@bordalix
Copy link
Copy Markdown
Collaborator

bordalix commented May 4, 2026

@sahilc0 it doesn't work on my computer:

Screenshot 2026-05-04 at 17 49 12

But my PR works, can you test both please?
#601

@sahilc0
Copy link
Copy Markdown
Contributor Author

sahilc0 commented May 6, 2026

@bordalix do i still need to test this? or is this fixed by your other one

@sahilc0
Copy link
Copy Markdown
Contributor Author

sahilc0 commented May 12, 2026

fixed already

@sahilc0 sahilc0 closed this May 12, 2026
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.

2 participants