Skip to content

Say what the discount is a percentage of - #40

Merged
khaitanvaibhav merged 1 commit into
mainfrom
claude/plan-enhancements-UABF2
Aug 1, 2026
Merged

khaitanvaibhav merged 1 commit into
mainfrom
claude/plan-enhancements-UABF2

Conversation

@khaitanvaibhav

Copy link
Copy Markdown
Contributor

The suffix on both discount fields read "%" or "% + 18% GST". It now reads "% on MRP" and "% on MRP + 18% GST", with the rate following the GST setting as before. Same change in the Quick-mode cards and the wizard, which use the same field.

The longer string does not fit. On one line it took a third of the field on desktop and squeezed the input to 20px at 320px, so it now wraps to two lines — which still clears the 38px row, and balances the two-line mode tabs directly above it. The only normal space is the one before the "+"; everything either side is joined with non-breaking spaces, so it breaks as "% on MRP" / "+ 18% GST" rather than stranding the "+" at the end of the first line.

The placeholder is sized as the hint it is rather than as data, so it still fits what is left of the field on the narrowest phone.

The 320px assertion added in the last commit is what caught the squeeze, and has been sharpened from "the input is at least 40px" to "the hint fits inside it" — a bar that means something.

1489 assertions, 0 failures.

Claude-Session: https://claude.ai/code/session_014vjNhTSno87yfot5BbyX4w

The suffix on both discount fields read "%" or "% + 18% GST". It now
reads "% on MRP" and "% on MRP + 18% GST", with the rate following the
GST setting as before. Same change in the Quick-mode cards and the
wizard, which use the same field.

The longer string does not fit. On one line it took a third of the
field on desktop and squeezed the input to 20px at 320px, so it now
wraps to two lines — which still clears the 38px row, and balances the
two-line mode tabs directly above it. The only normal space is the one
before the "+"; everything either side is joined with non-breaking
spaces, so it breaks as "% on MRP" / "+ 18% GST" rather than stranding
the "+" at the end of the first line.

The placeholder is sized as the hint it is rather than as data, so it
still fits what is left of the field on the narrowest phone.

The 320px assertion added in the last commit is what caught the squeeze,
and has been sharpened from "the input is at least 40px" to "the hint
fits inside it" — a bar that means something.

1489 assertions, 0 failures.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014vjNhTSno87yfot5BbyX4w
@netlify

netlify Bot commented Aug 1, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for sterlingcalc ready!

Name Link
🔨 Latest commit d9be7e2
🔍 Latest deploy log https://app.netlify.com/projects/sterlingcalc/deploys/6a6d7bd375693300089fc29e
😎 Deploy Preview https://deploy-preview-40--sterlingcalc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@khaitanvaibhav
khaitanvaibhav merged commit 61cdacb into main Aug 1, 2026
10 checks passed
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