Skip to content

Conversation

@nvaytet
Copy link
Member

@nvaytet nvaytet commented Sep 17, 2025

When using e.g. pp.slicer(data), if the dimension being sliced has a long name, it makes the slider very small.
This is because when we set the width of a slider using the layout, it accounts for the width of the entire widget, including the description. So it has to scale the slider down to fit inside the same space.

In this PR, we replace the use of the slider description by just a Label widget that we place to the left. It looks the same, but the slider width is constant at 200px.

Before:
Screenshot_20250917_143520

After:
Screenshot_20250917_143504

@nvaytet nvaytet requested review from YooSunYoung and jl-wynen and removed request for jl-wynen September 17, 2025 14:01
@nvaytet nvaytet merged commit 1a8f740 into main Sep 18, 2025
4 checks passed
@nvaytet nvaytet deleted the slider-size branch September 18, 2025 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants