fix: approve-tx/approve-sign error divs consistency with confirm-tx #92
No reviewers
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sneak/AutistMask#92
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/84-approve-error-div-consistency"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add
min-h-[1.25rem]and border styling toapprove-tx-errorandapprove-sign-errordivs to prevent layout shift, matching the pattern used bymodal-password-errorin the confirm-tx view.Replace direct DOM
classListmanipulation withshowError()/hideError()helpers fromhelpers.jsfor consistency.docker build .passes.Closes #84
✅ Review: merge-ready
Changes reviewed:
src/popup/index.html: Addedmin-h-[1.25rem],border border-border border-dashed p-1to#approve-tx-errorand#approve-sign-errordivs — prevents layout shift on error show/hide.src/popup/views/approval.js: Replaced directclassList.add/remove("hidden")andtextContentmanipulation withshowError()/hideError()helpers fromhelpers.js— consistent with the rest of the codebase.Verified:
docker build .passes ✅showError/hideErrorare properly exported from helpers.js ✅Minor note: The
modal-password-errordiv in confirm-tx doesn't havemin-h-[1.25rem]on main, so this PR actually improves on that pattern. Could be worth a follow-up to add it there too for full consistency.Assigned to @sneak for merge.