Skip to content

Fix admin dropdown menu layout#2814

Merged
syedgalib merged 3 commits intosovware:payment-beta-1from
RabbiIslamRony:fix-admin-dropdown-menu-layou
Apr 15, 2026
Merged

Fix admin dropdown menu layout#2814
syedgalib merged 3 commits intosovware:payment-beta-1from
RabbiIslamRony:fix-admin-dropdown-menu-layou

Conversation

@RabbiIslamRony
Copy link
Copy Markdown
Member

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Security fix
  • Improvement
  • New Feature
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Text changes
  • Other... Please describe:

Description

  • Removes the hardcoded min-width: 160px from .components-menu-item__item
    so action menus in the Plans and Packages tables fit their content naturally
  • Flips icon/label order via CSS order so the icon sits on the left and
    the label on the right, with an 8px gap between them
  • Zeroes out the icon's default margin to avoid double-spacing
  • Styles are injected with createGlobalStyle so they reach WordPress's
    Popover portal (rendered outside the component tree)
  • Adds vertical-align: middle to all th/td across all admin tables
    via the shared TableContainer

Test plan

  • Open Pricing Plans → All Plans, click the ⋮ menu on any row
  • Open Pricing Plans → All Packages, confirm rows are vertically centred
  • Confirm icon is on the left, label on the right, 8px gap, no excess width

Any linked issues

Fixes #

Checklist

RabbiIslamRony and others added 3 commits April 15, 2026 14:21
- Remove min-width from .components-menu-item__item to allow compact sizing
- Reorder items so icon appears left and label appears right via CSS order
- Add 8px gap between icon and label; zero out icon margin
- Inject styles via createGlobalStyle to reach the WP Popover portal
- Add vertical-align: middle to table th/td for consistent row alignment

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@syedgalib syedgalib changed the title Fix admin dropdown menu layou Fix admin dropdown menu layout Apr 15, 2026
@syedgalib syedgalib merged commit 27fe6ee into sovware:payment-beta-1 Apr 15, 2026
1 check failed
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