Respect `scrollbar.show` setting in Markdown preview (#60410)
The markdown preview used `vertical_scrollbar_for()` which always sets the scrollbar to auto-hide mode, ignoring the user's `scrollbar.show` setting. This fix uses `Scrollbars::for_settings::<EditorSettingsScrollbarProxy>()` so the markdown preview respects the same editor scrollbar visibility setting as regular editor panes (always, auto, system, never). Changes: - Replaced `vertical_scrollbar_for()` with `custom_scrollbars()` + `Scrollbars::for_settings::<EditorSettingsScrollbarProxy>()` in the markdown preview render method Fixes #60380 Release Notes: - Fixed `scrollbar.show` setting not being respected in Markdown previews --------- Co-authored-by: Akshit Jain <akshitj11@users.noreply.github.com> Co-authored-by: MrSubidubi <finn@zed.dev>
A
Akshit Joshi committed
027cf0def75e5c027504f402a6a6c0dcac11f178
Parent: ca1ef7a
Committed by GitHub <noreply@github.com>
on 8/7/2026, 1:22:09 PM