consistency: approve-tx and approve-sign password error divs missing min-height (layout shift) #84
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sneak/AutistMask#84
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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?
Problem
The
approve-txandapprove-signviews usehiddenclass toggling on their error divs (#approve-tx-error,#approve-sign-error), which causes layout shift when an error appears or disappears. The error divs have nomin-height.Expected behavior
Password error areas should use
min-h-[1.25rem](like theconfirm-txview does after #78) so that showing/hiding errors does not shift the layout.Files affected
src/popup/index.html(lines nearapprove-tx-errorandapprove-sign-error)src/popup/views/approval.js(error display logic)Suggested fix
Replace the
hiddenclass toggling pattern with a permanentmin-h-[1.25rem]div, and useshowError()/hideError()helpers fromhelpers.jsinstead of direct DOM manipulation.Found during consistency audit for #78.