# markdown: Add horizontal scroll for wide tables in hover popover \(\#61698\) · gitcafe/zed

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

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

Visibility: public

Requested revision: fee527c70fe3a701c28e4fb29b2acd61fcd1e23f

Requested commit: fee527c70fe3a701c28e4fb29b2acd61fcd1e23f

Commit: fee527c70fe3a701c28e4fb29b2acd61fcd1e23f

Tree: c70b0f3b7de1f3b23f186ae6833e0602c8db8c14

Author: JC Diamante

Committer: GitHub

## Message

```
markdown: Add horizontal scroll for wide tables in hover popover (#61698)

## Objective

- Fixes #61437 — Wide tables in doc comments get clipped instead of
being scrollable

## Solution

- Changed `.overflow_hidden()` to `.overflow_x_scroll()` on the table
rendering div in `crates/markdown/src/markdown.rs`
- When `table_columns_min_size` is true (as in the hover popover style),
grid columns use min-content sizing. Wide column content exceeds the
table width, and `.overflow_hidden()` clips it. `.overflow_x_scroll()`
makes the overflow scrollable.
- This same pattern is already used for code blocks in the same file
(line 2367).

## Testing

- Change is a single property affecting element rendering/layout
- Visual verification needed: hover a doc comment with a wide markdown
table, verify horizontal scrollbar appears and content is accessible
- Existing markdown tests should pass unchanged

## Recording


https://github.com/user-attachments/assets/d07aa6eb-ac9d-453f-9e51-453a33302cbd

---

Release Notes:

- Fixed wide tables in documentation hover popovers being clipped
instead of horizontally scrollable
```

## Parents

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

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