# Bug DREAM-506 - Search bar of filterable tree view is misaligned if segmented control and include checkbox are disabled

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Frontend components and Primer design system |
| Target versions | 16.5.0 |
| Observed in versions | 16.5.0 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) | 16.5.x |
| 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.  As a developer use a FilterableTreeView with the following arguments:
    

```ruby
render(
  Primer::OpenProject::FilterableTreeView.new(
    form_arguments: { builder: form, name: :new_parent },
    include_sub_items_check_box_arguments: { hidden: true },
    filter_mode_control_arguments: :none
  )
)
```

### What is the buggy behavior?

*   The tree view is rendered with a slightly indented search bar
    

### What is the expected behavior?

1.  The tree view is rendered only with a search bar, which is left aligned with the container.
    

### Important note

*   Within RubyMine, using `filter_mode_control_arguments: :none` shows a warning, that `:none` is not hash, but a hash is expected as argument. Maybe we can fix that, too?
    

### Screenshots and other files

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