# Project panel: Prevent scrollbar size from scaling with rem size \(\#14167\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 22900554d551e00fe7b02aab561054e0d9d69182

Requested commit: 22900554d551e00fe7b02aab561054e0d9d69182

Commit: 22900554d551e00fe7b02aab561054e0d9d69182

Tree: 45fbdf483e1dcce97bdf1343333e323367502548

Author: Piotr Osiewicz

Committer: GitHub

## Message

```
Project panel: Prevent scrollbar size from scaling with rem size (#14167)

The underlying container had width of 0.75 rem, which was equal to 12px
at default ui_font_size. However, with larger values of ui_font_size the
scrollbar would drift towards the center of a project panel, as the
scrollbar itself has a fixed width of 12 pixels. This commit moves
towards using a fixed width of 12px for scrollbar container. The
alternative was to make the scrollbar scale with ui_font_size, but that
isn't what the Editor scrollbar does, so I decided against it.



Release Notes:

- Fixed position of scrollbar in project panel with non-default
`ui_font_size` values.
```

## Parents

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

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