diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2020-01-14 14:21:12 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2020-01-15 10:53:08 +0100 |
commit | dda212a48e747b8f3158d5f21ebf537a636c1d11 (patch) | |
tree | 96adabefbdd47b1fddb1f1a67684478c9058688d /lib | |
parent | 4a059829837cef1ca065e68516161963952f7fdc (diff) | |
download | nextcloud-server-dda212a48e747b8f3158d5f21ebf537a636c1d11.tar.gz nextcloud-server-dda212a48e747b8f3158d5f21ebf537a636c1d11.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>
Diffstat (limited to 'lib')
-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); |