# context menu: Adjust toggleable entry label alignment \(\#24549\) · gitcafe/zed

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

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

Visibility: public

Requested revision: d15a61a1aa81317ae2414d8002a6e00475407cc3

Requested commit: d15a61a1aa81317ae2414d8002a6e00475407cc3

Commit: d15a61a1aa81317ae2414d8002a6e00475407cc3

Tree: b1c96cf8d55a6d9e8f12e7947a93bd3a2fa7bc6b

Author: Danilo Leal

Committer: GitHub

## Message

```
context menu: Adjust toggleable entry label alignment (#24549)

Previously, we were passing an `IconSize` that had a default size. Given
the check icon is small by default, when the entry is not toggled, that
caused a slight misalignment between the toggled and not-toggled items.
I'm passing now the same icon element but inside an opacity 0 div. Open
to other suggestions if this feels clunky.

| Before | After |
|--------|--------|
| <img width="946" alt="Screenshot 2025-02-10 at 7 58 28 AM"
src="https://github.com/user-attachments/assets/4d2b3f12-72c5-4c8d-acaf-c16230250560"
/> | <img width="943" alt="Screenshot 2025-02-10 at 7 58 37 AM"
src="https://github.com/user-attachments/assets/2df64752-7273-4bdc-9f6b-5153ed52c889"
/> |

Release Notes:

- N/A
```

## Parents

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

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