Skip to content

fix(601): Fix unified view without line numbers expand cell bug #61

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

circAssimilate
Copy link
Contributor

@circAssimilate circAssimilate commented Dec 30, 2019

Summary:
This will fix #60, where a unified view with no line numbers needs to have the same expand button / empty cell ordering as the other views. The original ternary was a bit confusing to me so I updated it to use <React.Fragment /> and what I think is a clearer pattern. Definitely open to feedback on that! I also needed to replicate this exception for the code-gutter class being added. See screenshots for how it all looks now on the example app.

p.s. Side note / future development feature request - not sure how you feel about it, but I think it would be great to hook this repo up to https://github.com/storybookjs/storybook or something similar for easier feature development. The example page is beautiful but the changing of props is a little error prone and more difficult than it could be. :)

Screenshots:
Unified view with no line numbers before fix
Screen Shot 2019-12-30 at 12 43 58 PM

All views after fix
Screen Shot 2019-12-30 at 1 01 57 PM
Screen Shot 2019-12-30 at 12 37 34 PM
Screen Shot 2019-12-30 at 12 37 18 PM
Screen Shot 2019-12-30 at 12 36 37 PM

@praneshr praneshr merged commit 6b804fe into praneshr:master Apr 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.1.0 Features/fixes to be added in v3.1.0 bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unified (non-split) view without line numbers seems to add extra <td>
2 participants