Repository navigation
Conversation
|
Looks better, thanks for your contribution. I'll let @DenizUgur validate the technical side and merge. |
35328df to
426f60a
Compare
|
|
Didn't get any feedback so I submitted it roughly to my LLM: I’d keep the vertical layout and hover approach, but fix the SVG sizing before merging. I reviewed [PR #531](#531) at The main problem is that [the SVG viewport still uses the browser’s dimensions]( Lines 1077 to 1093 in 89fb972 Using the actual D3 code, I reproduced two regressions:
Two inherited issues also remain: negative composition timestamps can fall outside the viewport, and updating with an empty selection leaves the previous samples displayed. I prepared a refinement patch, applicable on top of the PR. It:
Validation: ten targeted DOM/SVG scenarios passed, including reordered timestamps, variable durations, and repeated updates. JavaScript syntax checking passed. Browser visual and hover verification remain untested because browser access was unavailable. Your checkout is unchanged. The LLM suggested the following update: Do you agree with it? |
Thanks a lot. I have applied this update to this PR. In the original horizontal layout, the SVG also can't include all samples when there are too many samples. There is no horizontal scroll bar. So I didn't try to update the SVG size when more samples are selected. With your suggestion, it is much better that the selected samples are always visible. |
Description
This PR try to imporve the readability of sample timeline in filereader demo. The horizontal layout for displaying Decoding and Composition mapping was too compact and difficult to interpret. The changes introduce a vertical layout and add hover highlighting to clearly visualize the correspondence between Decoding and Composition sample mappings.
Changes Made
Changed from a compact horizontal arrangement to a clear vertical stacked layout
Improved visual separation and alignment between Decoding and Composition timelines
Benefits
✅ Enhanced Readability: Vertical layout provides more space and reduces visual clutter
✅ Better Mapping Visualization: Hover highlighting instantly shows Decoding ↔ Composition relationships
✅ Improved User Experience: Intuitive interaction helps users understand sample mappings without guesswork
✅ Maintains All Functionality: All existing features remain fully functional
Visual Comparison