# Bug OP-11494 - File picker modal height changes when navigating the file structure

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

## Open points

_No work packages_

## Details

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

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| 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 on the current QA edge instance, or any other OpenProject instance that has the Nextcloud integration set up.
2.  Go to a work package that already has a file linked (otherwise the buttons to open the file picker modal is not there)
3.  Click on **Link existing file**
4.  Navigate into a folder, i.e. _Photos_

### What is the buggy behavior?

*   The height of the modal changes, which also changes the vertical position of the blue primary button for submitting the selection

### What is the expected behavior?

*   The modal size keeps the same, so that
*   No buttons change their positions when navigating between file directories.
*   The height of the modal is somewhat using the available browser view-port height, so that large folder can easily scanned with the eye with little scrolleing. So maybe some 75% to 80% of the vertical screen height (and not some smallish 50%).
