Skip to content

Conversation

@paula-stacho
Copy link
Collaborator

@paula-stacho paula-stacho commented Oct 28, 2025

Description

There was a minWidth already, but it didn't work because there are several layers between this parent element and the button, so in the end the width was not preserved.

Before

Screenshot 2025-10-28 at 09 58 46

After

Screenshot 2025-10-28 at 09 58 18

Checklist

  • New tests and/or benchmarks are included
  • Documentation is changed or added
  • If this change updates the UI, screenshots/videos are added and a design review is requested
  • I have signed the MongoDB Contributor License Agreement (https://www.mongodb.com/legal/contributor-agreement)

Motivation and Context

  • Bugfix
  • New feature
  • Dependency update
  • Misc

Open Questions

Dependents

Types of changes

  • Backport Needed
  • Patch (non-breaking change which fixes an issue)
  • Minor (non-breaking change which adds functionality)
  • Major (fix or feature that would cause existing functionality to change)

@paula-stacho paula-stacho requested a review from a team as a code owner October 28, 2025 09:02
@github-actions github-actions bot added the fix label Oct 28, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a UI issue where a delete icon was being cut off due to insufficient width constraints. The fix adds a minimum width constraint to the container element that holds the button.

  • Adds a CSS selector targeting divs containing buttons to ensure proper minimum width

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Collaborator

@mabaasit mabaasit left a comment

Choose a reason for hiding this comment

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

[nit]: maybe give it a bit more spacing to accommodate for focus ring?

Image

@paula-stacho paula-stacho merged commit a4024bd into main Oct 28, 2025
58 of 60 checks passed
@paula-stacho paula-stacho deleted the COMPASS-9987 branch October 28, 2025 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants