fix(console): stabilize provider card header layout across locales#1401
fix(console): stabilize provider card header layout across locales#1401EuanTop wants to merge 6 commits intoagentscope-ai:mainfrom
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request enhances the user experience of the Models > Providers page by improving the responsiveness of provider cards. The changes focus on preventing UI elements from overflowing or wrapping inappropriately when the browser window is narrow, ensuring a cleaner and more functional layout across different screen sizes. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request fixes an overflow issue on provider cards by making the action buttons responsive. The approach uses a combination of CSS techniques including clamp(), media queries, and container queries. While this works, the mix of these techniques for the same properties makes the styling complex and harder to maintain. My review includes suggestions to refactor the CSS to rely solely on container queries for responsive adjustments. This will make the component's styling more robust, self-contained, and easier to reason about.
There was a problem hiding this comment.
Pull request overview
This PR addresses action-button overflow in the Console’s Models > Providers cards at narrow widths by making the action area non-wrapping and reducing spacing/padding responsively, including shortening the custom-provider delete label when space is constrained.
Changes:
- Enables container queries on provider cards and uses them to tighten action spacing/padding at very narrow card widths.
- Forces the actions row and individual action buttons to remain on a single line (no wrapping).
- Updates the custom provider delete button to swap between “Delete Provider” and “Delete” based on container width.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
console/src/pages/Settings/Models/index.module.less |
Adds container-query-driven compact styles for provider card actions and adjusts spacing/padding to avoid overflow. |
console/src/pages/Settings/Models/components/cards/RemoteProviderCard.tsx |
Wraps delete label in long/short spans and applies shared action-button styling to the delete button. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
|
addressed review comments and unified responsive card layout across locales. |
There was a problem hiding this comment.
Pull request overview
This PR improves the layout stability of the Models > Providers cards across multiple locales by restructuring the provider card header and action areas to behave more predictably at narrow widths.
Changes:
- Added container-query-driven responsive tweaks for provider card actions (gap/padding and compact delete label on narrow cards).
- Reworked provider card header layout to stabilize title/tag placement and status alignment.
- Introduced runtime wrapped-title detection to switch between single-line vs structured two-line header rendering.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| console/src/pages/Settings/Models/index.module.less | Adds container queries and new header/status/title/action styles to keep alignment stable across widths/locales. |
| console/src/pages/Settings/Models/components/cards/RemoteProviderCard.tsx | Updates remote provider card header rendering, adds wrapped-title detection, and shortens delete label on narrow cards. |
| console/src/pages/Settings/Models/components/cards/LocalProviderCard.tsx | Mirrors the header/title/status layout behavior of remote cards, including wrapped-title detection. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Improves the visual stability of the Models > Providers cards across multiple locales by adjusting the provider card header layout, title wrapping behavior, status block layout, and narrow-width action button behavior.
Changes:
- Adds container-query driven responsive tweaks to provider cards to keep actions on one line and shorten delete text on narrow cards.
- Refactors provider header structure/styles to stabilize title/tag wrapping and status alignment.
- Adds runtime title-wrapping detection (via
ResizeObserver) to switch between title layouts.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 7 comments.
| File | Description |
|---|---|
| console/src/pages/Settings/Models/index.module.less | Adds container queries and new header/title/status/action layout styles to stabilize card layout across locales and widths. |
| console/src/pages/Settings/Models/components/cards/RemoteProviderCard.tsx | Updates header markup to support the new title/tag/status layout, including wrap detection and compact delete label. |
| console/src/pages/Settings/Models/components/cards/LocalProviderCard.tsx | Mirrors the new header/title/status layout and wrap detection for local provider cards. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
There was a problem hiding this comment.
Pull request overview
This PR improves the visual stability of the Models → Providers card headers across locales by restructuring the header layout, tightening action button behavior at narrow widths, and standardizing status/title/tag placement.
Changes:
- Adds container-query-based responsive tweaks to keep provider action buttons on one line and shorten the delete label on very narrow cards.
- Reworks provider header layout to stabilize status alignment and title/tag placement (including wrapped-title handling).
- Refactors status rendering into “main” + “meta” lines with ellipsis handling and a consistent dot placement.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
console/src/pages/Settings/Models/index.module.less |
Adds container queries and new layout classes for consistent header/title/status/actions behavior across widths/locales. |
console/src/pages/Settings/Models/components/cards/RemoteProviderCard.tsx |
Updates remote provider card header rendering (wrapped title logic, status split, compact delete label). |
console/src/pages/Settings/Models/components/cards/LocalProviderCard.tsx |
Applies the same wrapped-title/status layout approach to local provider cards for consistency. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Description
Improve layout consistency of Models > Providers cards across locales (English/Chinese/Japanese/Russian) while preserving narrow-width usability.



This PR focuses on stable, predictable card structure in multilingual scenarios:
Security Considerations: N/A (UI layout/text behavior only, no auth/config/data-path changes)
Type of Change
Component(s) Affected
Checklist
Testing
Manual:
Build:
Local Verification Evidence
pre-commit run --all-files
pytest
npm run build (console)
Additional Notes
This change is intentionally scoped to console UI layout consistency and does not alter provider APIs or backend behavior.