sagemathinc / cocalc

CoCalc: Collaborative Calculation in the Cloud
https://CoCalc.com
Other
1.16k stars 212 forks source link

Overlapping labels for close revisions #7791

Open novoselt opened 1 month ago

novoselt commented 1 month ago

Describe the bug When two close revisions are selected in TimeTravel, they are on top of each other.

Expected behavior I would like to be able to read both labels. At the moment both are centered on their handles. Is it possible to align the left label by its right corner and the right label by its left corner? Then there will be no overlap regardless of how close they are.

Alternatively, one label can be at the top and one at the bottom, but that consumes vertical space and I personally always prefer to avoid it.

Screenshots image

williamstein commented 1 month ago

This is impossible for us to fix so long as we use the upstream Antd Range Slider, which doesn't have a way to independently change the position of the labels.

See https://ant.design/components/slider#tooltip

You can make both labels to the left or the right, but not only one.

I added the blocked tag, which basically means we ignore this until 2025, etc...

novoselt commented 1 month ago

OK! I do like the new slider way more, however, because the handles do not overlap, which is more important.