Vertical scroll on file preview for small screens

This commit is contained in:
jendib 2013-09-07 00:27:13 +02:00
parent 726121d8c8
commit 56f6038c09
3 changed files with 9 additions and 0 deletions

View File

@ -6,6 +6,7 @@
App.controller('FileView', function($dialog, $state, $stateParams) { App.controller('FileView', function($dialog, $state, $stateParams) {
var dialog = $dialog.dialog({ var dialog = $dialog.dialog({
keyboard: true, keyboard: true,
dialogClass: 'modal modal-fileview',
templateUrl: 'partial/docs/file.view.html', templateUrl: 'partial/docs/file.view.html',
controller: function($scope, $state, $stateParams, Restangular, dialog) { controller: function($scope, $state, $stateParams, Restangular, dialog) {
// Load files // Load files

View File

@ -6,6 +6,7 @@
App.controller('FileView', function($dialog, $state, $stateParams) { App.controller('FileView', function($dialog, $state, $stateParams) {
var dialog = $dialog.dialog({ var dialog = $dialog.dialog({
keyboard: true, keyboard: true,
dialogClass: 'modal modal-fileview',
templateUrl: 'partial/share/file.view.html', templateUrl: 'partial/share/file.view.html',
controller: function($scope, $state, $stateParams, Restangular, dialog) { controller: function($scope, $state, $stateParams, Restangular, dialog) {
// Load files // Load files

View File

@ -80,6 +80,13 @@
} }
} }
// File view
.modal-fileview {
top: 2%;
max-height: 96%;
overflow-y: scroll;
}
// File thumbnails // File thumbnails
.thumbnail-file { .thumbnail-file {
cursor: pointer; cursor: pointer;