Skip to content

Commit

Permalink
add minimum line height
Browse files Browse the repository at this point in the history
  • Loading branch information
hayden-MB committed Oct 23, 2024
1 parent 32f482b commit 9102883
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inst/resources/gitbook/js/plugin-fontsettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ gitbook.require(["gitbook", "lodash", "jQuery"], function(gitbook, _, $) {
$book[0].className = $book[0].className.replace(/\bcolor-theme-\S+/g, '');
$book.addClass("color-theme-"+fontState.theme);
}
$book.find('section').css('line-height', fontState.spacing / 10);
var lineHeight = Math.max(fontState.spacing / 10, 1);
$book.find('section').css('line-height', lineHeight);
};

function init(config) {
Expand Down

0 comments on commit 9102883

Please sign in to comment.