# scrollbar: Implement minimum thumb size \(\#25288\) · gitcafe/zed

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

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

Visibility: public

Requested revision: d45aaa174563cbeb0d082aa7557f1a40346b2bc9

Requested commit: d45aaa174563cbeb0d082aa7557f1a40346b2bc9

Commit: d45aaa174563cbeb0d082aa7557f1a40346b2bc9

Tree: b048d06a9f8d3aa3ead65376a1127d7c19f4abe5

Author: smit

Committer: GitHub

## Message

```
scrollbar: Implement minimum thumb size  (#25288)

This PR addresses 3 issues with the common scrollbar component used in
the Terminal, Outline Panel, etc.

1. Extremely small or invisible scrollbar for long content.
2. Flickering issue when the thumb is already at the bottom-most
position, and the user tries to overscroll.
3. Scrollbar appearing even when there is no excessive content to
scroll.

Before:
<img width="300" alt="image"
src="https://github.com/user-attachments/assets/8a124a72-3b56-4bef-858a-a4942c871829"
/>

After:
<img width="300" alt="Screenshot 2025-02-21 at 3 26 32 AM"
src="https://github.com/user-attachments/assets/2a8a5796-b332-4c06-84b2-226d2de6e300"
/>


Release Notes:

- Fixed extremely small scrollbar thumb for long content in Terminal,
Outline Panel, and more.

---------

Co-authored-by: Danilo <danilo@zed.dev>
Co-authored-by: Richard Feldman <oss@rtfeldman.com>
```

## Parents

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

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