From 56f6038c0934742160996aa81f96b8867b4006fc Mon Sep 17 00:00:00 2001 From: jendib Date: Sat, 7 Sep 2013 00:27:13 +0200 Subject: [PATCH] Vertical scroll on file preview for small screens --- docs-web/src/main/webapp/app/docs/controller/FileView.js | 1 + docs-web/src/main/webapp/app/share/controller/FileView.js | 1 + docs-web/src/main/webapp/style/main.less | 7 +++++++ 3 files changed, 9 insertions(+) diff --git a/docs-web/src/main/webapp/app/docs/controller/FileView.js b/docs-web/src/main/webapp/app/docs/controller/FileView.js index faef5eac..1e6963ed 100644 --- a/docs-web/src/main/webapp/app/docs/controller/FileView.js +++ b/docs-web/src/main/webapp/app/docs/controller/FileView.js @@ -6,6 +6,7 @@ App.controller('FileView', function($dialog, $state, $stateParams) { var dialog = $dialog.dialog({ keyboard: true, + dialogClass: 'modal modal-fileview', templateUrl: 'partial/docs/file.view.html', controller: function($scope, $state, $stateParams, Restangular, dialog) { // Load files diff --git a/docs-web/src/main/webapp/app/share/controller/FileView.js b/docs-web/src/main/webapp/app/share/controller/FileView.js index 322813da..44633d1b 100644 --- a/docs-web/src/main/webapp/app/share/controller/FileView.js +++ b/docs-web/src/main/webapp/app/share/controller/FileView.js @@ -6,6 +6,7 @@ App.controller('FileView', function($dialog, $state, $stateParams) { var dialog = $dialog.dialog({ keyboard: true, + dialogClass: 'modal modal-fileview', templateUrl: 'partial/share/file.view.html', controller: function($scope, $state, $stateParams, Restangular, dialog) { // Load files diff --git a/docs-web/src/main/webapp/style/main.less b/docs-web/src/main/webapp/style/main.less index 11ed3548..30da1b29 100644 --- a/docs-web/src/main/webapp/style/main.less +++ b/docs-web/src/main/webapp/style/main.less @@ -80,6 +80,13 @@ } } +// File view +.modal-fileview { + top: 2%; + max-height: 96%; + overflow-y: scroll; +} + // File thumbnails .thumbnail-file { cursor: pointer;