# csv_preview: Add single-line row displaying mode \(\#61127\) · gitcafe/zed

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

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

Visibility: public

Requested revision: f688bee4fe7799f4c8fe1b8d05f32443f935e680

Requested commit: f688bee4fe7799f4c8fe1b8d05f32443f935e680

Commit: f688bee4fe7799f4c8fe1b8d05f32443f935e680

Tree: 4cb228be558c50849d385c9cc69803e63cba5734

Author: Oleksandr Kholiavko

Committer: GitHub

## Message

```
csv_preview: Add single-line row displaying mode (#61127)

### Changes

Adds a checkbox to toggle between multiline cells (current behavior) and
single-line rows that clip overflow, so wide CSVs stay compact when full
cell content isn't needed at a glance.

#### Demo
| Before | After |
| --- | --- |
| No single line mode | <img width="662" height="316" alt="image"
src="https://github.com/user-attachments/assets/3f2a9673-557c-4539-b755-9ff2633de2d7"
/> |
| <img width="666" height="287" alt="image"
src="https://github.com/user-attachments/assets/703f7214-a722-4fa5-9125-f043439e21b2"
/> | <img width="660" height="317" alt="image"
src="https://github.com/user-attachments/assets/be6ca912-e686-44da-90eb-58f09fab51f1"
/> |

### Testing

- Toggle "Display multiline rows" off: cells clip to one line with
ellipsis instead of wrapping
- Toggle it back on: cells wrap and grow to show full content
- Resize the window / change font size: single-line clip height tracks
the actual text line height instead of a stale hardcoded value

Release Notes:

-  N/A
```

## Parents

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

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