Skip to content

fix: word wrapping in notebook "Add new" cell dropdown - #454

Merged
dmitriy-kostianetskiy merged 2 commits into
mainfrom
copilot/prevent-word-wrapping-add-dropdown
Mar 12, 2026
Merged

dmitriy-kostianetskiy merged 2 commits into
mainfrom
copilot/prevent-word-wrapping-add-dropdown

Conversation

Copilot AI commented Mar 11, 2026 •

Copy link
Copy Markdown
Contributor
image

The AddNewCellDropdown popover was constrained to w-[100px], causing multi-word labels like "Text / Markdown" and "Input / Parameter" to break across two lines.

Changes

  • packages/notebook/src/cellOperations/AddNewCellDropdown.tsx
    • PopoverContent: w-[100px] → w-auto so the dropdown sizes to its content
    • Label <span>: added whitespace-nowrap to prevent wrapping regardless of container
- className="w-[100px] p-0"
+ className="w-auto p-0"

- <span className="text-xs capitalize">
+ <span className="text-xs capitalize whitespace-nowrap">
Original prompt

This section details on the original issue you should resolve

<issue_title>Prevent word wrapping in add cell dropdown</issue_title>
<issue_description>Image</issue_description>

<agent_instructions>prevent word wrapping in Add New dropdown in notebooks package.

Text/Markdown and Input/Parameter are now occupy two lines, we want them to be in a single line</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Fix word wrapping in add cell dropdown Fix word wrapping in notebook "Add new" cell dropdown Mar 11, 2026
@dmitriy-kostianetskiy
dmitriy-kostianetskiy marked this pull request as ready for review March 11, 2026 22:52
@dmitriy-kostianetskiy dmitriy-kostianetskiy changed the title Fix word wrapping in notebook "Add new" cell dropdown fix: word wrapping in notebook "Add new" cell dropdown Mar 11, 2026
@dmitriy-kostianetskiy
dmitriy-kostianetskiy merged commit 888c0cd into main Mar 12, 2026
1 of 2 checks passed
@dmitriy-kostianetskiy
dmitriy-kostianetskiy deleted the copilot/prevent-word-wrapping-add-dropdown branch March 12, 2026 09:26
mihajlo-stojkovic pushed a commit that referenced this pull request Mar 12, 2026
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: dmitriy-kostianetskiy <[email protected]>
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.

Prevent word wrapping in add cell dropdown

3 participants