# Bug OP-15950 - Improve sidebar item alignment

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-15950

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | High |
| Module |  |
| Target versions | 15.0.0 |
| Observed in versions |  |
| Sprint | 15.0.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | Yes |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

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

## Planning

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

## Costs

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

## Description

#### **Buggy behaviour**

Currently, sidebar items has too many alignment points. Consider this comparison between sidebar items in Admininstration (1st level), Notifications and Meetings (2nd level):

<img class="image_resized op-uc-image op-uc-image_inline" style="width:1161px;" src="/api/v3/attachments/200067/content">

The lines represent:

  - Pink: Base left margin, 1st level

  - Yellow:
    
      - Base left margin, 2nd level
    
      - Sub-header

  - Cyan: Base left margin, Notificaiton center (when there are icons)

  - Light pink: Text when there are icons (except Notifications)

  - Blue:
    
      - Headings, 2nd level
    
      - Project selector (top nav)

Notifications is particularly problematic, because there are four alignment points in just that one sidebar:

<img class="image_resized op-uc-image op-uc-image_inline" style="width:972px;" src="/api/v3/attachments/200068/content">

Some of these problems might have been already been fixed but reintroduced with new margins and paddings introduced by Primer.

#### Expected Behaviour

  - Implement just three alignment points:
    
      - **Base left margin:**
        
          - the same for 1st and 2nd level)
        
          - sub-headings
    
      - **Second alignment point:**
        
          - Items with icons
        
          - Headings (with back icon, icon will be in base left margin)
        
          - ~~Aligned with project selector (top-nav)~~
    
      - **Third alignement point:**
        
          - the project selector

#### Out of scope

  - This will not aim to fix alignment of entries in the Wiki and Activity modules (although if they're fixed as a consequence, all the better)

#### **Visuals**

**<img class="image_resized op-uc-image op-uc-image_inline" style="width:257px;" src="/api/v3/attachments/200069/content">**

Figma link: <https://www.figma.com/design/fWIF9BCEE03xNKNKxiKg9I/Sidebar-upgrades?node-id=302-979>
