Fix Policies tab container resize on tab switch - #1414
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe policies panel styling now sets a minimum height of ChangesPolicies panel sizing
Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to The change keeps the Policies page container at a consistent minimum height when switching tabs, addressing the visible resize without introducing an actionable merge-blocking risk; it is merge-ready after normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|



Fixes wso2/api-manager#4725
The Policies page container (
.paperclass in Policies.tsx) had no minHeight,so its size was determined entirely by the currently visible tab's content.
For OpenAI API / AzureAIFoundryAPI (which have few operations), the
Operation-level Policies tab renders much less content than the API-level tab,
causing the container to visibly shrink/resize when switching tabs.
Fix: added a minHeight to the .paper class so the container stays a
consistent size regardless of tab content.