diff --git a/css/style.scss b/css/style.scss index 673c4b45c..064458d3c 100644 --- a/css/style.scss +++ b/css/style.scss @@ -70,6 +70,32 @@ input.input-inline { cursor: text; } +/** + * Generic app layout + */ + +.app.app-deck { + width: 100%; + height: 100%; + display: flex; +} + + +#app-content { + display: flex; + flex-direction: column; +} +#content-wrapper { + overflow: hidden; + position: fixed; + width: 100%; + height: 100%; + #content { + height: calc(100% - 50px); + min-height: initial; + } +} + /** * Navigation sidebar */ @@ -617,17 +643,6 @@ input.input-inline { /** * App sidebar */ -#app-sidebar { - right: -500px; - max-width: 100%; - width: 500px; - display:flex; - flex-direction: column; - - &.details-visible { - right: 0; - } -} #sidebar-header { h3 { @@ -922,16 +937,6 @@ input.input-inline { } } -#app-content { - overflow: hidden; - display: flex; - flex-direction: column; - - &.details-visible { - margin-right: 500px; - } -} - .labels { display: block; overflow: hidden; diff --git a/js/app/Config.js b/js/app/Config.js index 8a8510496..fcb2203fe 100644 --- a/js/app/Config.js +++ b/js/app/Config.js @@ -71,8 +71,9 @@ app.config(function ($provide, $interpolateProvider, $httpProvider, $urlRouterPr tab: {value: 0, dynamic: true}, }, views: { - 'sidebarView': { - templateUrl: '/board.sidebarView.html' + 'sidebarView@': { + templateUrl: '/board.sidebarView.html', + controller: 'BoardController' } } }) @@ -82,7 +83,7 @@ app.config(function ($provide, $interpolateProvider, $httpProvider, $urlRouterPr tab: {value: 0, dynamic: true}, }, views: { - 'sidebarView': { + 'sidebarView@': { templateUrl: '/card.sidebarView.html', controller: 'CardController' } diff --git a/templates/main.php b/templates/main.php index 0dc3b7fb8..9e61ad6e8 100644 --- a/templates/main.php +++ b/templates/main.php @@ -28,32 +28,30 @@ Util::addScript('deck', 'build/vendor'); Util::addStyle('deck', 'style'); Util::addScript('deck', 'build/deck'); + +if (\OC_Util::getVersion()[0] < 14) { + Util::addStyle('deck', 'comp-13'); +} ?> -
t('Drop your files here to upload it to the card')); ?>