Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted June 13, 20204 yr It would be great to use the "Expand" feature with blocks of code in the same way as with quotes. Quote Long quote example Long quote example Long quote example Long quote example Long quote example Long quote example Long quote example Long quote example Long quote example Long quote example Long code example Long code example Long code example Long code example Long code example Long code example Long code example Long code example Long code example Long code example Long code example Long code example
June 13, 20204 yr On 6/13/2020 at 12:05 AM, Mr 13 said: It would be great to use the "Expand" feature with blocks of code in the same way as with quotes. Long code example Long code example Long code example Long code example Long code example Long code example Long code example Long code example Long code example Long code example Long code example Long code example Good idea. Also, what makes this future even better is having another button after "Expand" the quote/code named "Hide" to shrink it back. Edited June 14, 20204 yr by Afrodude
June 13, 20204 yr An alternative method that you can use, is to define the max height of the code block by adding the below code in to your custom.css pre.ipsCode{ max-height:500px; }
June 24, 20204 yr Author @Ioannis D, this is what I'm using since IPS 4.0.0 on my communities for both quotes and code blocks, but this topic is not about it. Since 4.5 finally has an "Expand" feature, it would be great to use it with code blocks instead of this CSS-based workaround which is not that convenient.