canjs / bit-docs-html-canjs

The plugins to produce CanJS.com
https://www.npmjs.com/package/bit-docs-html-canjs
MIT License
7 stars 0 forks source link

Don’t show the expand button for one line of code #556

Closed chasenlehara closed 5 years ago

chasenlehara commented 5 years ago

[I’m not sure if this is the right repo.]

Here’s an example:

Screen Shot 2019-06-30 at 7 25 42 PM

It seems like we should not collapse the code when only one line needs to be collapsed. It should look like this:

Screen Shot 2019-06-30 at 7 25 48 PM
justinbmeyer commented 5 years ago

The logic here gets a bit tricky. So we will show 3 lines, unless the 4th would eliminate a collapseable. But we wouldn’t do this for a 5th.