diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2020-01-14 14:21:12 +0100 |
---|---|---|
committer | npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com> | 2020-01-14 22:38:04 +0000 |
commit | 17256781a6900f45ddcb1be2f67f627072e33586 (patch) | |
tree | 973cbc2fc72302c65ddcb4860d2458c79a0ddd20 /lib/private/Preview | |
parent | 092a1fb90f57639a15adc5a8e565b53debe26a8a (diff) | |
download | nextcloud-server-17256781a6900f45ddcb1be2f67f627072e33586.tar.gz nextcloud-server-17256781a6900f45ddcb1be2f67f627072e33586.zip |
Proper text previews
Fixes #17828
* Modified the preview provider to provider smaller fonts for the
previes (so it is not so screaming)
* Modified the sidebar to show plain text and markdown files full size.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
Diffstat (limited to 'lib/private/Preview')
-rw-r--r-- | lib/private/Preview/TXT.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Preview/TXT.php b/lib/private/Preview/TXT.php index 06f60457aff..3090446ac4d 100644 --- a/lib/private/Preview/TXT.php +++ b/lib/private/Preview/TXT.php @@ -68,7 +68,7 @@ class TXT extends ProviderV2 { $lines = preg_split("/\r\n|\n|\r/", $content); // Define text size of text file preview - $fontSize = $maxX ? (int) ((2 / 32) * $maxX) : 5; //5px + $fontSize = $maxX ? (int) ((1 / 32) * $maxX) : 5; //5px $lineSize = ceil($fontSize * 1.5); $image = imagecreate($maxX, $maxY); |