Skip to content

fix config cards clipping content at narrow window widths - #7146

Merged
oobabooga merged 2 commits into
unslothai:mainfrom
NilayYadav:fix-params-card-clipping
Jul 16, 2026
Merged

oobabooga merged 2 commits into
unslothai:mainfrom
NilayYadav:fix-params-card-clipping

Conversation

@NilayYadav

Copy link
Copy Markdown
Collaborator

The Studio configure cards had a fixed 520px height with clipped overflow, so at narrower windows the wrapped text pushed the bottom of the card out of view, the "Training Hyperparameters" section could become completely hidden and unclickable. Use min-height instead so cards keep the 520px baseline but grow with their content. Removes the unused h-studio-config-column class and leftover conditional state.

Before:
Screenshot 2026-07-15 at 8 02 54 PM

After:
Screenshot 2026-07-15 at 7 53 50 PM

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request simplifies the layout of the Fine-tuning Studio sections (dataset, params, and training) by standardizing on a minimum height (min-h-studio-config-column) instead of conditionally toggling between fixed and minimum heights. Unused conditional states and the .h-studio-config-column CSS class have been removed. I have no feedback to provide as there are no review comments.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@oobabooga

Copy link
Copy Markdown
Member

@NilayYadav Reproduced the bug on main first: where the three cards sit in a row, the Parameters card is locked at 520px and the Training Hyperparameters toggle at the bottom gets clipped, so you can't click it. On your branch the card grows when it needs to and the toggle stays clickable at every width I checked. Single-column layout is unchanged, nothing left dangling from the old conditional.

min-height is the right solution rather than a patch: a fixed height behind the card's overflow clip was always going to hide something. Uneven card bottoms is preferable to clipping a live control. Merging.

@oobabooga
oobabooga merged commit 3be4907 into unslothai:main Jul 16, 2026
34 of 36 checks passed
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