Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MetricCombobox: Fix overflowing parents #97049

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

eledobleefe
Copy link
Contributor

@eledobleefe eledobleefe commented Nov 26, 2024

What is this feature?
We recently fixed the overflowing issue in the Combobox component itself, and now we modify a bit the PromQueryBuilderContainer and the MetricCombobox itself to fix the overflowing there.

Why do we need this feature?
To avoid overflowing parent containers.

Who is this feature for?
Everybody using MetricCombobox

Which issue(s) does this PR fix?:

Fixes #

Special notes for your reviewer:

Before:

metriccombobox.mov
Grabacion.de.pantalla.2024-11-26.a.las.16.17.47.mov

After:

Grabacion.de.pantalla.2024-11-26.a.las.16.24.31.mov
Grabacion.de.pantalla.2024-11-26.a.las.16.23.27.mov

Please check that:

  • It works as expected from a user's perspective.
  • If this is a pre-GA feature, it is behind a feature toggle.
  • The docs are updated, and if this is a notable improvement, it's added to our What's New doc.

@eledobleefe eledobleefe added type/bug area/frontend no-backport Skip backport of PR no-changelog Skip including change in changelog/release notes labels Nov 26, 2024
@eledobleefe eledobleefe self-assigned this Nov 26, 2024
@eledobleefe eledobleefe requested a review from a team as a code owner November 26, 2024 14:55
@github-actions github-actions bot added this to the 11.4.x milestone Nov 26, 2024
@eledobleefe eledobleefe requested a review from a team as a code owner November 29, 2024 15:28
@eledobleefe eledobleefe requested review from Clarity-89 and removed request for a team November 29, 2024 15:28
'> div': {
'label + div': {
// Take label and the metrics explorer button into account
maxWidth: `calc(100% - (160px + 32px))`,
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there any way we could approach this in the InlineFieldRow component without calculating from hardcoded values?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/frontend no-backport Skip backport of PR no-changelog Skip including change in changelog/release notes type/bug
Projects
Status: 🔍 In review
Development

Successfully merging this pull request may close these issues.

2 participants