Repository navigation
Say what the discount is a percentage of - #40
Merged
Merged
Conversation
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
✅ Deploy Preview for sterlingcalc ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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