Skip to content

fix send-input spacing and move selected destination#1073

Open
gudnuf wants to merge 7 commits into
masterfrom
fix/send-input-spacing
Open

fix send-input spacing and move selected destination#1073
gudnuf wants to merge 7 commits into
masterfrom
fix/send-input-spacing

Conversation

@gudnuf
Copy link
Copy Markdown
Contributor

@gudnuf gudnuf commented May 14, 2026

Summary

The send input had an always-rendered 24px destination div + a 16px gap-4 wrapper, pushing 40px of dead space between the amount and the account selector.

Move the selected destination to replace the action buttons (paste, scan,...)

image

The amount and destination now live in the same fixed-height (h-[124px])
block as receive/buy, instead of stacking under an outer wrapper with
gap-4. The destination chip tucks tight below the amount when set, and
the account selector position stays constant regardless of destination
state.
@vercel
Copy link
Copy Markdown

vercel Bot commented May 14, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agicash Ready Ready Preview, Comment May 15, 2026 0:17am

Request Review

@supabase
Copy link
Copy Markdown

supabase Bot commented May 14, 2026

This pull request has been ignored for the connected project hrebgkfhjpkbxpztqqke because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

…pad pb

The destination chip was overflowing the 124px amount block on small
screens, painting over the account selector. Pull the chip tight against
the converted-money switcher with -mt-2 so it fits exactly within the
box, and zero the PageFooter mobile bottom padding to give 4-8px of
breathing room between destination and selector via the justify-between
redistribution.
Previously the destination chip lived inside the 124px amount block,
which forced layout compromises (overlap with selector, dead space,
shifts). Move it to the action row instead: when a destination is
picked, the Paste/Scan/AtSign icons are replaced by a chip showing the
destination with an X to clear. Hitting X restores the icons. This
keeps the amount + account selector spacing identical to the receive
and buy pages, and the chip's col-span-2 grid cell has enough width for
the truncated bolt11 display.
The destination chip in the action row has enough width for ~24 monospace
characters at text-sm; the previous 6+...+4 only used 13. Bump to
12+...+8 so the user can recognize more of the invoice at a glance.
@gudnuf gudnuf changed the title fix(send): match receive/buy layout to stop account selector drift fix send-input spacing May 15, 2026
@gudnuf gudnuf changed the title fix send-input spacing fix send-input spacing and move selected destination May 15, 2026
@gudnuf gudnuf requested review from Copilot and jbojcic1 May 15, 2026 00:23
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adjusts the send input layout to remove unused vertical spacing and show the selected destination in the lower action area.

Changes:

  • Removed the always-rendered destination spacer below the amount display.
  • Replaced the paste/scan/select actions with a selected-destination chip when a destination is chosen.
  • Expanded the shortened BOLT11 destination display.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
app/features/send/send-input.tsx Updates send screen layout and selected destination presentation.
app/features/send/resolve-destination.ts Changes BOLT11 invoice display truncation length.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

</div>
<div /> {/* spacer */}
{destinationDisplay ? (
<div className="col-span-2 flex h-10 items-center justify-between gap-2 rounded-lg border border-primary bg-background px-3 text-sm">
) : (
<>
<div className="flex items-center justify-start gap-4">
<button type="button" onClick={handlePaste}>
<LinkWithViewTransition
to={buildLinkWithSearchParams('/send/scan')}
transition="slideUp"
applyTo="newView"
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.

3 participants