# Don't scale context menus in editors with buffer font size \(\#11930\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 65138868670d71649a4f8a47fd9e507610c98215

Requested commit: 65138868670d71649a4f8a47fd9e507610c98215

Commit: 65138868670d71649a4f8a47fd9e507610c98215

Tree: 741c4a06fff8c304f8ed0beb3089b0c7a63ea773

Author: Marshall Bowers

Committer: GitHub

## Message

```
Don't scale context menus in editors with buffer font size (#11930)

With the changes in #11817, context menus within editors would get
scaled by the `buffer_font_size` instead of the `ui_font_size`.

This seems incorrect, as it results in context menus being sized
inconsistently depending on what context they originate from.

This PR makes it so that all context menus scale based on the
`ui_font_size`.

### Before

<img width="1474" alt="Screenshot 2024-05-16 at 2 43 19 PM"
src="https://github.com/zed-industries/zed/assets/1486634/a5be8113-ae24-44ad-a2e9-61105e1fcc9e">

### After

<img width="1095" alt="Screenshot 2024-05-16 at 2 43 01 PM"
src="https://github.com/zed-industries/zed/assets/1486634/3a8d51cf-fc91-4743-8f44-78344028e447">

Release Notes:

- Changed context menus in editors to no longer scale with
`buffer_font_size`.
```

## Parents

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

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