# Bug DREAM-262 - Create WP button overlaps over long WP type name and long WP subjects

Project: Stream Design System
Status: closed
URL: https://community.openproject.org/work_packages/DREAM-262

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Work packages, Frontend components and Primer design system |
| Target versions | 17.9.0 |
| Observed in versions | 15.4.0 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) | 15.4.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List | UX/UI |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Lars Wassermann |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Steps to reproduce

1.  Login as an admin
    
2.  Set up a WP type with a long name and add it to a project
    
3.  Go the project
    
4.  Go to the WP module
    
5.  Create a new WP of that type
    
6.  Add a long title to it
    
7.  Examples [here](https://qa.openproject-edge.com/projects/LOL/work_packages/LOL-439/activity?query_id=7216) and [here](https://qa.openproject-edge.com/projects/test-project-cecile/work_packages/10870/activity?query_id=3687)
    

### What is the buggy behaviour?

*   WP type is misaligned with the rest of the upper elements
    
*   Subject is hidden behind the Create button
    

### What is the expected behaviour?

1.  WP type is aligned with the other upper elements
    
2.  Subject is fully readable
    

We talked in UX/UI and decided to limit the type to 33% of the available width. In some cases the type will be truncated despite the subject being short enough to fit more. That is accepted.

When testing this, check the WP show view (see screenshot), the WP details view (when opening a ticket in the sidebar), and the new WP creation view. Those 3 all use this component.

###   

### Screenshots and other files

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

### Environment information

**OpenProject version**

Core build

[e7e2c0bab22c87ac1c94a9186624dcef76568521](https://github.com/opf/openproject/commits/e7e2c0bab22c87ac1c94a9186624dcef76568521)

Product version

[fecfd713fe4e4d7091aad426531b89c14bc1d77c](https://github.com/opf/saas-openproject/commits/fecfd713fe4e4d7091aad426531b89c14bc1d77c)

Core version

OpenProject 16.0.0

**Browser**

*   [ ] Chrome
*   [x] Firefox 137.0
*   [ ] Safari
*   [ ] Mobile Safari
*   [ ] Other (please specify)

**Operating System**

*   [x] Windows 11Pro
*   [ ] Mac OS X
*   [ ] Mobile iOS
*   [ ] Mobile Android
*   [ ] Linux (please specify distro)
*   [ ] Chrome OS
*   [ ] Other (please specify)
