Improve padding

This commit is contained in:
MrSubidubi 2025-08-26 11:37:39 +02:00
parent c0891800dc
commit 0e8696df84

View file

@ -999,7 +999,7 @@ impl<S: ScrollbarVisibilitySetting, T: ScrollableHandle> Element for ScrollbarEl
let width = self.state.read(cx).width.to_pixels(); let width = self.state.read(cx).width.to_pixels();
let additional_padding = if thumb_ranges.len() == 2 { let additional_padding = if thumb_ranges.len() == 2 {
width + SCROLLBAR_PADDING width
} else { } else {
Pixels::ZERO Pixels::ZERO
}; };