# Fix overlapping block headers when using custom line height \(\#4071\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 3d041f4e917fc8cdd4b3c30258f0f895c44f31ee

Requested commit: 3d041f4e917fc8cdd4b3c30258f0f895c44f31ee

Commit: 3d041f4e917fc8cdd4b3c30258f0f895c44f31ee

Tree: a9d3f6de20cc956e7d24caf59480aa03233a275d

Author: Thorsten Ball

Committer: GitHub

## Message

````
Fix overlapping block headers when using custom line height (#4071)

This fixes block headers overlapping over text in the buffer when using
a custom line height of 1.25.

It fixes the issue by making the parent container a v-flex,
vertically-justifying the content and moving from relative padding to
absolute padding for the header itself.

## Before/After

With setting:
```json
  "buffer_line_height": {
    "custom": 1.25
  },
```

### Before

![screenshot-2024-01-16-16 48
48@2x](https://github.com/zed-industries/zed/assets/1185253/8c3b977e-333f-403c-a4d3-0911f3fac5e0)

### After

![screenshot-2024-01-16-16 50
13@2x](https://github.com/zed-industries/zed/assets/1185253/2d854eba-c4c4-4bce-b60b-dd250856b08f)

### Release notes
Release Notes:

- Fixed headers in multi-buffers overlapping over content of the buffer
````

## Parents

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

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

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