diff options
author | Olivier Paroz <github@oparoz.com> | 2015-04-16 15:28:04 +0200 |
---|---|---|
committer | Olivier Paroz <github@oparoz.com> | 2015-04-23 18:19:07 +0200 |
commit | 8d3f88cf16f86212861db996023dadf1fb3e310f (patch) | |
tree | cde161aaefcb52ee20644010f07eb06578ec0a6a /apps/files_sharing/css | |
parent | a672e9d5563998205923b3b388208bb4b8242048 (diff) | |
download | nextcloud-server-8d3f88cf16f86212861db996023dadf1fb3e310f.tar.gz nextcloud-server-8d3f88cf16f86212861db996023dadf1fb3e310f.zip |
Show a text preview instead of a bitmap preview of text
+ fix the preview height
Diffstat (limited to 'apps/files_sharing/css')
-rw-r--r-- | apps/files_sharing/css/public.css | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/apps/files_sharing/css/public.css b/apps/files_sharing/css/public.css index ef013ca07d7..b3d2aae3fd9 100644 --- a/apps/files_sharing/css/public.css +++ b/apps/files_sharing/css/public.css @@ -2,7 +2,6 @@ background: #fff; text-align: center; margin: 45px auto 0; - min-height: 600px; } #preview .notCreatable { @@ -28,6 +27,22 @@ max-width:100%; } +#imgframe .text-preview { + display: inline-block; + text-align: left; + white-space: pre-wrap; + overflow-y: auto; + height: auto; + min-height: 200px; + max-height: 800px; + -webkit-touch-callout: none; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; +} + /* fix multiselect bar offset on shared page */ thead { left: 0 !important; |