Skip to content

Fix invoice modal positioning: center modals on screen - #536

Merged
bokelley merged 1 commit into
mainfrom
bokelley/fix-invoice-modal-position
Jan 4, 2026
Merged

Fix invoice modal positioning: center modals on screen#536
bokelley merged 1 commit into
mainfrom
bokelley/fix-invoice-modal-position

Conversation

@bokelley

@bokelley bokelley commented Jan 4, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Fix invoice request modal appearing at bottom of page instead of centered
  • The issue occurred because inline styles had flexbox alignment properties but when JS set display: flex, the centering didn't work properly

Changes

  • dashboard-membership.html: Use existing .profile-modal-overlay class instead of inline styles for both invoice and agreement modals
  • join-cta.js: Call injectJoinCtaStyles() in openInvoiceRequestModal() to ensure the modal overlay CSS is loaded before creating the modal

Test plan

  • Tested with Vibium browser - modal now centers properly on both personal and company org membership pages
  • All existing tests pass

🤖 Generated with Claude Code

The invoice request modal was appearing at the bottom of the page instead
of centered. This happened because the inline styles had flexbox alignment
properties but no display:flex, so when JavaScript set display:flex it
didn't properly enable the centering.

Fixed by:
- dashboard-membership.html: Use existing .profile-modal-overlay class
  instead of inline styles for both invoice and agreement modals
- join-cta.js: Call injectJoinCtaStyles() in openInvoiceRequestModal()
  to ensure the modal overlay CSS is loaded before creating the modal

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@bokelley
bokelley merged commit 774a914 into main Jan 4, 2026
6 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.

1 participant