We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ce2c853 + 1592f25 commit 3e8f6cdCopy full SHA for 3e8f6cd
1 file changed
lib/private/preview/txt.php
@@ -55,7 +55,7 @@ public function getThumbnail($path, $maxX, $maxY, $scalingup, $fileview) {
55
56
$lines = preg_split("/\r\n|\n|\r/", $content);
57
58
- $fontSize = 5; //5px
+ $fontSize = ($maxX) ? (int) ((5 / 36) * $maxX) : 5; //5px
59
$lineSize = ceil($fontSize * 1.25);
60
61
$image = imagecreate($maxX, $maxY);
0 commit comments