# settings_ui: Correct stepper increment and enforce max value for Centered Layout Padding \(\#40751\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 4b429033e74e8b6f5721d87ca9cd80af33d275e3

Requested commit: 4b429033e74e8b6f5721d87ca9cd80af33d275e3

Commit: 4b429033e74e8b6f5721d87ca9cd80af33d275e3

Tree: bb45e763f68ef7b9381c001551318d88f9ceb7c0

Author: Delvin

Committer: GitHub

## Message

```
settings_ui: Correct stepper increment and enforce max value for Centered Layout Padding (#40751)

Closes #40748

This PR improves the Centered Layout Padding in settings ui by limiting the numeric stepper to be within valid values and adding a custom schema generated to improve the JSON LSP completions and warnings when editing the setting field manually.

Release Notes:

- settings ui: limit stepper increment for centered padding between 0 and 0.4 and increment by 0.05 now

---------

Co-authored by: Anthony Eid <anthony@zed.dev>
```

## Parents

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

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