ref(replays): Remove unneeded TimelinePosition and fold its css into scrubber.tsx#36952
Conversation
|
cc @Jesse-Box I'm proposing some timeline color changes here, and fixing scrubber colors. |
Jesse-Box
left a comment
There was a problem hiding this comment.
Hey man, I think you raise some good points here, and although I think the purple200 is too distracting for me personally, I understand you're trying to find the best for both cases.
Did you try replacing the scrubber's cursor style for the timeline one
Yeah purple200 is a big step up :( in both spots. They don’t have to be the same though! For me in the timeline, without a border on the edge purple100 is ok against the white background, we could add a right border there to match the mouse cursor tracking. Then it’s like your moving that bar along. I think with the timeline when we made the purple area taller it kinda brought some stuff along for the ride, for example the overlapping transparencies from before. |
2bbd7e7 to
a82e85b
Compare
There are two components to talk about, the Timeline (top part of screen shot) and Scrubber (lower), lets take them each in turn.
Here's the Before/After:
Timeline
currentTimeis stillpurple100mouseTimeto be transparent (was purple100)currentTimebar, so both currentTime and mouseTime have the sameborder-right-color: purple300mouseTimeright-edge. See Design Nit: Timeline should not have extra 'rectangle' sticking out above the hoverTime marker -> remove it #36815currentTimebackground, so it doesn't poke out. See Design Nit: Timeline current & hover state doesn't have rounded corners, purple rectangles stick out past the border #36821Scrubber
currentTimeispurple200(was purple100)currentTimenub was not visible, the purple200 blends into the gray background too much imomouseTimeis still transparentmouseTimeis still presentRefactors
<TimelinePosition>. It was setting theborder-rightproperty for us, but now it's part of scrubber.tsx. Save a few dom nodes.Fixes #36815
Fixes #36821