Flowise icon indicating copy to clipboard operation
Flowise copied to clipboard

Dropdown selection changes component width and causes layout wrapping

Open PailaKarthik opened this issue 5 months ago • 2 comments

Describe the bug

When selecting certain values from a dropdown, the selected text increases the width of the dropdown component.

As a result, nearby elements wrap or shift position, causing an inconsistent layout.

Steps to reproduce

  1. Navigate to the affected page
  2. Open the dropdown
  3. Select an option with longer text
  4. Observe the surrounding layout

Expected behavior

The dropdown width should remain stable after selection and should not affect the positioning of surrounding elements.

Actual behavior

The dropdown width changes based on the selected option, causing nearby elements to wrap or shift.

Additional context

This creates visible layout shifts and affects the user experience, especially when selecting longer option values.

Image

PailaKarthik avatar Jun 14 '26 12:06 PailaKarthik

nice work btw. grabbed a few ideas from the code for my own project (hope that's ok lol)

Huaian666 avatar Jun 18 '26 06:06 Huaian666

Root cause: the marketplace filter controls only had a minimum width, so long selected values could expand a select and push neighboring controls into a wrapped layout.

Fix: the filter selects now use a stable width and truncate long selected values inside the control.

Validation: pnpm --dir packages/ui build

PR: https://github.com/FlowiseAI/Flowise/pull/6544

vicksiyi avatar Jun 22 '26 17:06 vicksiyi