mirror of
https://github.com/sismics/docs.git
synced 2024-11-22 14:07:55 +01:00
Vertical scroll on file preview for small screens
This commit is contained in:
parent
726121d8c8
commit
56f6038c09
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user