# Restore the previous styles for single-line editors \(\#10951\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b673494f4df8d24e72587614c67260dc6b74603d

Requested commit: b673494f4df8d24e72587614c67260dc6b74603d

Commit: b673494f4df8d24e72587614c67260dc6b74603d

Tree: cf825609a5d4b59d626cc6f166a601116f90e146

Author: Marshall Bowers

Committer: GitHub

## Message

```
Restore the previous styles for single-line editors (#10951)

This PR fixes a bug introduced in #10870 that caused editors used as
single-line inputs to have the wrong text style.

If this change was intentional for something relating to the new
Assistant panel, we'll need to figure out a way to change it without
breaking these other usages.

### Before

<img width="589" alt="Screenshot 2024-04-24 at 5 35 36 PM"
src="https://github.com/zed-industries/zed/assets/1486634/31624cfd-75d1-4771-9402-c14ef9e9483e">

<img width="326" alt="Screenshot 2024-04-24 at 5 35 46 PM"
src="https://github.com/zed-industries/zed/assets/1486634/1b76a3ef-7205-49ee-b391-7609f90461bd">

### After

<img width="588" alt="Screenshot 2024-04-24 at 5 36 14 PM"
src="https://github.com/zed-industries/zed/assets/1486634/9d550ee2-80c0-4afb-9b45-a2956471c546">

<img width="260" alt="Screenshot 2024-04-24 at 5 36 31 PM"
src="https://github.com/zed-industries/zed/assets/1486634/63240f27-1679-45d5-b39c-016860ff9683">

Release Notes:

- Fixed a bug where some inputs were using the wrong font style
(preview-only).
```

## Parents

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

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