scrollbar: Update min thumb size to 24px. (#766)

<img width="330" alt="image"
src="https://github.com/user-attachments/assets/ace52246-65ed-4d28-9906-c16281b6bd79"
/>
This commit is contained in:
Jason Lee 2025-04-02 11:37:19 +08:00 committed by GitHub
parent 4f0617e96f
commit e921621a8b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,7 +34,7 @@ impl ScrollbarShow {
const BORDER_WIDTH: Pixels = px(0.);
pub(crate) const WIDTH: Pixels = px(12.);
const MIN_THUMB_SIZE: f32 = 80.;
const MIN_THUMB_SIZE: f32 = 24.;
const THUMB_RADIUS: Pixels = Pixels(4.0);
const THUMB_INSET: Pixels = Pixels(3.);
const FADE_OUT_DURATION: f32 = 3.0;