Skip to content

chore(ui): have BottomBarContainer render using Modal - #1128

Merged
bmc08gt merged 1 commit into
code/cashfrom
feat/bottombar-use-modal
Jul 23, 2026
Merged

chore(ui): have BottomBarContainer render using Modal#1128
bmc08gt merged 1 commit into
code/cashfrom
feat/bottombar-use-modal

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
@bmc08gt bmc08gt self-assigned this Jul 23, 2026
@github-actions github-actions Bot added area: ui Compose UI, theme, components, resources type: chore Maintenance, config, CI/CD labels Jul 23, 2026
@bmc08gt
bmc08gt merged commit 42c6f18 into code/cash Jul 23, 2026
2 of 3 checks passed
@bmc08gt
bmc08gt deleted the feat/bottombar-use-modal branch July 23, 2026 21:53
bmc08gt added a commit that referenced this pull request Jul 24, 2026
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
bmc08gt added a commit that referenced this pull request Jul 29, 2026
* fix(ui): restore BottomBar padding after Modal migration

PR #1128 migrated BottomBarContainer to the shared Modal composable but
inherited Modal's own layout defaults, changing how the bar renders:
- top inset padding was halved (inset -> grid.x2)
- an extra bottom gap was added (grid.x2, on top of the button's own padding)
- item spacing tightened (grid.x3 -> grid.x2)
- title/subtitle became center-aligned instead of start-aligned

Parameterize Modal with contentPadding and horizontalAlignment (defaults
unchanged, so other callers like ReceivedFundsConfirmation are unaffected)
and pass the original BottomBarView values from BottomBarContainer.

* fix(ui): use textLarge for BottomBar title and caption for message

* fix(ui): keep BottomBar content during exit so slide-out animation is visible

The manager clears the active message immediately on close (so other screens
don't re-show it), which set bottomBarMessage to null before the AnimatedContent
exit transition finished. BottomBarView early-returns on a null message, so the
outgoing frame rendered nothing and the bar appeared to vanish instantly instead
of sliding out.

Retain the last non-null message and render that during the transition so the
slide-out animation is visible.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ui Compose UI, theme, components, resources type: chore Maintenance, config, CI/CD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant