quocodile / visualize-clonal-trees

code repository for group COMPs at Computer Science Department of Carleton College, MN, 2022 - 2023
MIT License
1 stars 0 forks source link

Fix buggy on-hover event for single view #2

Closed quocodile closed 1 year ago

quocodile commented 1 year ago

RECREATE: Hover over all shared mutations when comparing caset_fig6_t1 and caset_fig6_t2. One of the on-hover events will start bugging out as it'll move the highlighted text onto a new line.

Acceptance: All mutations should be hoverable and not buggy when comparing caset_fig6_t1 and caset_fig6_62.

quocodile commented 1 year ago

Hover events now work. I resolved the issue by adding a div around each mutation label that is bigger than the span that contains it. The span tag can expand, but not outside the bounds of the div that contains it. I also changed to a monospace font, which means that the width of each character is the same.