fix(agentex-ui): stop clipping agent badge hover scale and shadow#352
Merged
Conversation
The agents-list scroll container uses overflow-y-auto for the max-h-[60vh] scroll. Because a non-visible overflow on one axis forces the other axis to clip too, the badges' framer-motion hover scale (1.05), rounded corners, and selected-state shadow-md were clipped at the container edge — the pill's resize appeared to poke outside its own box. Add p-2 so the transformed badge and its shadow render inside the clip boundary. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
declan-scale
approved these changes
Jul 8, 2026
declan-scale
approved these changes
Jul 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds
p-2to the agents-list scroll container so agent chips' framer-motion hover scale (scale: 1.05), rounded corners, and the selected chip'sshadow-mdare no longer clipped at the container edge.Before:

After:
Screen.Recording.2026-07-08.at.7.48.36.PM.mov
Why
agentex-ui/components/agents-list/agents-list.tsxusesoverflow-y-autofor themax-h-[60vh]scroll. Per CSS, a non-visibleoverflow on one axis forces the cross axis to clip too, so transforms and shadows — which don't grow the layout box — get cut off. The result: the hover resize appears to poke outside the chip's own rounded box, and the selected chip's top/bottom border looks flattened. Reproduces in both selected and unselected states.Pre-existing on
main; not introduced by the in-flight account-picker / OIDC branches (both leave the agent-badge/agents-list files byte-identical tomain).Test plan
max-h-[60vh].Fixes AGX1-474
🤖 Generated with Claude Code
Greptile Summary
Adds
p-2padding to the scrollable agent-chips container inagents-list.tsxto prevent CSS overflow clipping from cutting off Framer Motion hover-scale animations andshadow-mdon selected chips.visibleoverflow forces both axes to clip transforms/shadows that don't affect layout box size) is correctly diagnosed and the fix is minimal and targeted.divon line 42 does not receive matchingp-2, leaving a slight layout shift between the skeleton and loaded states, though neitheroverflow-y-autonor the hover effects exist on that branch so visual clipping is not a concern there.Confidence Score: 5/5
Safe to merge — a single-class addition to one container element with no logic changes.
The change is a one-word Tailwind class addition that correctly addresses a well-understood CSS overflow-clipping behavior. The only gap is that the skeleton loading branch doesn't receive the same padding, producing a minor layout shift on transition, but this does not affect correctness or user data.
No files require special attention beyond the optional skeleton-branch padding alignment noted in the inline comment.
Important Files Changed
Flowchart
%%{init: {'theme': 'neutral'}}%% flowchart TD A[Container: overflow-y-auto] -->|No padding| B[Child element renders at container edge] B --> C[scale 1.05 / shadow-md extends beyond layout box] C --> D[CSS clips at overflow boundary] A2[Container: overflow-y-auto + p-2] -->|8px inset on all sides| B2[Child element inset from container edge] B2 --> C2[scale 1.05 / shadow-md fits within padded space] C2 --> D2[No clipping]%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%% flowchart TD A[Container: overflow-y-auto] -->|No padding| B[Child element renders at container edge] B --> C[scale 1.05 / shadow-md extends beyond layout box] C --> D[CSS clips at overflow boundary] A2[Container: overflow-y-auto + p-2] -->|8px inset on all sides| B2[Child element inset from container edge] B2 --> C2[scale 1.05 / shadow-md fits within padded space] C2 --> D2[No clipping]Prompt To Fix All With AI
Reviews (1): Last reviewed commit: "fix(agentex-ui): stop clipping agent bad..." | Re-trigger Greptile