Skip to content

Fix Policies tab container resize on tab switch - #1414

Open
Lithika-binuwara wants to merge 1 commit into
wso2:mainfrom
Lithika-binuwara:fix-policies-tab-resize
Open

Fix Policies tab container resize on tab switch#1414
Lithika-binuwara wants to merge 1 commit into
wso2:mainfrom
Lithika-binuwara:fix-policies-tab-resize

Conversation

@Lithika-binuwara

Copy link
Copy Markdown

Fixes wso2/api-manager#4725

The Policies page container (.paper class 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.

@CLAassistant

CLAassistant commented Aug 15, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@coderabbitai

coderabbitai Bot commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 24735042-024e-4338-89e4-42095ab5fc71

📥 Commits

Reviewing files that changed from the base of the PR and between d0bd37d and e8d4a9a.

📒 Files selected for processing (1)
  • portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Policies/Policies.tsx

📝 Walkthrough

Walkthrough

The policies panel styling now sets a minimum height of 400px to keep its size consistent across policy views.

Changes

Policies panel sizing

Layer / File(s) Summary
Set policies panel minimum height
portals/publisher/.../Policies/Policies.tsx
The styled policies panel now uses minHeight: 400px.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Merge Risk: ⚪ Minimal · up to e8d4a

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: irash-perera

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly describes the fix for the Policies tab container resizing during tab switches.
Description check ✅ Passed The description explains the resize issue, affected API types, root cause, and minHeight fix.
Linked Issues check ✅ Passed The minHeight change directly addresses issue #4725 by keeping the Policies container consistent across tabs.
Out of Scope Changes check ✅ Passed The pull request contains one styling change that is directly related to the linked issue and stated objectives.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sonarqubecloud

Copy link
Copy Markdown

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.

[UI] Publisher Portal Polices adding page issue

2 participants