# assistant2: Fix submit button width depending on certain conditions \(\#25748\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 635b80ed51bb06fa82cbad6aec61016288edd88a

Requested commit: 635b80ed51bb06fa82cbad6aec61016288edd88a

Commit: 635b80ed51bb06fa82cbad6aec61016288edd88a

Tree: 15d5a6fd8fb8ab2af6b5d058879bf411ec32f907

Author: Danilo Leal

Committer: GitHub

## Message

```
assistant2: Fix submit button width depending on certain conditions (#25748)

This PR makes the Assistant 2 submit button have a different width if
the platform is Linux or Windows, or if Vim mode is turned on. That's
because we now use written out words instead of icons for keybindings
when in those conditions.

| Before | After |
|--------|--------|
| ![CleanShot 2025-02-27 at 9  59
10@2x](https://github.com/user-attachments/assets/f1f8e27c-71c2-402c-8f7b-f9ed91e8e3bf)
| ![CleanShot 2025-02-27 at 9  56
59@2x](https://github.com/user-attachments/assets/ad13b179-daf7-4b38-83e8-1511deb97d96)
|

Release Notes:

- N/A
```

## Parents

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

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