# debugger_ui: Add button to close the panel when docked to bottom \(\#43409\) · gitcafe/zed

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

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

Visibility: public

Requested revision: d6c550c8382462b5cec334974e05fc7787e66a87

Requested commit: d6c550c8382462b5cec334974e05fc7787e66a87

Commit: d6c550c8382462b5cec334974e05fc7787e66a87

Tree: c9d7af9361775311db15c5c8101b8fc9e3d9dbf5

Author: Danilo Leal

Committer: GitHub

## Message

```
debugger_ui: Add button to close the panel when docked to bottom (#43409)

This PR adds a button to close the panel when it is docked to the
bottom. Effectively, the button triggers the same `ToggleBottomDock`
action that clicking on the button that opened the panel triggers, but I
think having it there just makes it extra obvious how to close it, which
is beneficial.

As a bonus, also fixed the panel controls container height when it is
docked to the sides, so it perfectly aligns with the panel tabbar
height.

| Perfectly Aligned Header | Close Button |
|--------|--------|
| <img width="2620" height="2010" alt="Screenshot 2025-11-24 at 12  01
2@2x"
src="https://github.com/user-attachments/assets/08a50858-1b50-4ebd-af7a-c5dae32cf4f6"
/> | <img width="2620" height="2010" alt="Screenshot 2025-11-24 at 12 
01@2x"
src="https://github.com/user-attachments/assets/17a6eee0-9934-4949-8741-fffd5b106e95"
/> |

Release Notes:

- N/A
```

## Parents

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

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