# workspace: Keep restricted mode modal actions visible \(\#53124\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/7d8fe66f1b9357458b726a96b1ad27a7326f60e2)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 7d8fe66f1b9357458b726a96b1ad27a7326f60e2

Requested commit: 7d8fe66f1b9357458b726a96b1ad27a7326f60e2

Commit: 7d8fe66f1b9357458b726a96b1ad27a7326f60e2

Tree: b8a2f990efcd7aaba5c5cf0e0a169a113300bb98

Author: Saketh

Committer: GitHub

## Message

```
workspace: Keep restricted mode modal actions visible (#53124)

Closes #52586

## Summary
- cap the restricted project list height inside the security modal and
make it scroll
- cap the modal body content height so the action buttons stay reachable
on smaller screens
- add a regression test that reproduces the overflow scenario with many
restricted projects in a constrained window

## Validation
- manually reproduced the overflow by opening 60 untrusted projects in a
720x620 window before the fix
- cargo test -p workspace
test_security_modal_project_list_scrolls_when_many_projects_are_restricted
- cargo check -p workspace

Release Notes:

- Fixed restricted mode dialogs overflowing past the window when many
unrecognized projects are open.

---------

Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
```

## Parents

- [909f6d12fcd355b3f790163927453443a8bad601](https://git.cafe/gitcafe/zed/commit/909f6d12fcd355b3f790163927453443a8bad601?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/7d8fe66f1b9357458b726a96b1ad27a7326f60e2?format=markdown)
