Skip to content

Commit

Permalink
Increase number of lines shown based on discussion
Browse files Browse the repository at this point in the history
  • Loading branch information
renintw authored and ryelle committed Jun 9, 2022
1 parent 522f8b4 commit db482ee
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

// eslint-disable-next-line id-length -- $ OK.
jQuery( function ( $ ) {
// 22.5px (line height) * 10 for 10 lines + 15px top padding + 45px button height + 10px extra.
// 22.5px (line height) * 15 for 15 lines + 15px top padding + 45px button height + 10px extra.
// The extra 10px added to partially show next line so it's clear there is more.
const MIN_HEIGHT = 22.5 * 10 + 15 + 45 + 10;
const MIN_HEIGHT = 22.5 * 15 + 15 + 45 + 10;

function collapseCodeBlock( $element, $button ) {
$button.text( wporgFunctionReferenceI18n.expand );
Expand Down

0 comments on commit db482ee

Please sign in to comment.