# Bug DREAM-951 - Long workflow names cause controls to overflow on the type workflow tab

Project: Stream Design System
Status: needs review
URL: https://community.openproject.org/work_packages/DREAM-951

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Administration / Type/Variants and Workflows, Administration / Work package administration, Frontend components and Primer design system / Sub header |
| Target versions | 18.0.0 |
| Observed in versions | 18.0.0 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Henriette Darge |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Go to **Administration → Work packages → Types**.
    
2.  Open the type or variant.
    
3.  Open the **Workflow** tab.
    
4.  Select a workflow with a long name.
    
5.  Reduce the viewport width
    

### What is the buggy behavior?

*   The workflow selector expands to fit the selected name. The controls exceed the available width, pushing the role selector or **\+ Workflow** action outside the visible area.
    

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/926204/content">

<br>

### What is the expected behavior?

1.  Long selected values truncate with an ellipsis, and controls wrap when there is insufficient space.
    
2.  The full value remains readable in the opened dropdown.
    

### Important note

*   Use Primer’s existing `Truncate` component for long selected values.
    
*   Constrain the selector to the available container width instead of using a fixed pixel limit.
    
*   Allow the button and its flex containers to shrink.
    
*   Allow the selector row and action area to wrap when there is insufficient space.
