# Fix button in multibuffer header overflowing \(\#43761\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b11f22bb9af48b70f3c55e1ebbb04d48cd8fb110

Requested commit: b11f22bb9af48b70f3c55e1ebbb04d48cd8fb110

Commit: b11f22bb9af48b70f3c55e1ebbb04d48cd8fb110

Tree: 3675e7e8486f3234ca98e4c66cd8367c2af1c078

Author: Danilo Leal

Committer: GitHub

## Message

```
Fix button in multibuffer header overflowing (#43761)

Closes https://github.com/zed-industries/zed/issues/43726

Note that the truncation strategy on the file path is not yet perfect.
I'm just applying the regular method from the label component, but we
should wrap path text from the start rather than from the end. Some time
in the future!

<img width="500" height="712" alt="Screenshot 2025-11-28 at 7  17@2x"
src="https://github.com/user-attachments/assets/6ebc618a-4b4a-42fd-b5b7-39fec3ae5335"
/>

Release Notes:

- Fixed a bug where the "Open File" button would overflow in the
multibuffer header if the file path was too long.
```

## Parents

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

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