From 56c82f1848a5bc16f65d2af44e5c83ef9fb6376f Mon Sep 17 00:00:00 2001 From: Henriette Dinger Date: Fri, 24 Nov 2017 16:30:46 +0100 Subject: [PATCH] Change mobile full view --- .../work_packages/fullscreen/_back_button.sass | 2 -- app/assets/stylesheets/layout/_base_mobile.sass | 4 ++++ .../stylesheets/layout/_work_package_mobile.sass | 16 ++++++++++++++++ .../layout/_work_packages_full_view.sass | 13 ++----------- .../app/components/routing/wp-show/wp.show.html | 5 +++-- .../wp-watcher-button.directive.html | 2 +- 6 files changed, 26 insertions(+), 16 deletions(-) diff --git a/app/assets/stylesheets/content/work_packages/fullscreen/_back_button.sass b/app/assets/stylesheets/content/work_packages/fullscreen/_back_button.sass index 16df68d10a..a920cfb144 100644 --- a/app/assets/stylesheets/content/work_packages/fullscreen/_back_button.sass +++ b/app/assets/stylesheets/content/work_packages/fullscreen/_back_button.sass @@ -16,8 +16,6 @@ @media only screen and (max-width: 679px) // Move button in the current reverse order to front order: +1 - // give button full width - width: 100% padding-right: 0px a diff --git a/app/assets/stylesheets/layout/_base_mobile.sass b/app/assets/stylesheets/layout/_base_mobile.sass index a2ad061e1e..69e1a8cfee 100644 --- a/app/assets/stylesheets/layout/_base_mobile.sass +++ b/app/assets/stylesheets/layout/_base_mobile.sass @@ -70,3 +70,7 @@ .jstElements display: none + +@include breakpoint(680px up) + .hidden-for-desktop + display: none diff --git a/app/assets/stylesheets/layout/_work_package_mobile.sass b/app/assets/stylesheets/layout/_work_package_mobile.sass index 8afe10765a..06fa24a95b 100644 --- a/app/assets/stylesheets/layout/_work_package_mobile.sass +++ b/app/assets/stylesheets/layout/_work_package_mobile.sass @@ -163,3 +163,19 @@ body.controller-work_packages.action-show .work-packages--show-view padding: 0 + + #main-menu + display: none + &~ #content-wrapper + padding-top: 0 !important + + #toolbar-items + position: absolute + top: 10px + justify-content: flex-end + .toolbar-item + flex-grow: 0 + .wp-show--header-container + z-index: 2 + .work-packages-full-view--split-container + border-top: none diff --git a/app/assets/stylesheets/layout/_work_packages_full_view.sass b/app/assets/stylesheets/layout/_work_packages_full_view.sass index c5f1671f97..241addb433 100644 --- a/app/assets/stylesheets/layout/_work_packages_full_view.sass +++ b/app/assets/stylesheets/layout/_work_packages_full_view.sass @@ -208,9 +208,6 @@ body.controller-work_packages.full-create font-size: 20px font-weight: bold line-height: 34px - @media only screen and (max-width: 679px) - // give subject full width - width: 100% .work-packages--subject-element &.work-packages--details--subject @@ -226,9 +223,6 @@ body.controller-work_packages.full-create .work-packages--subject-type-row display: flex - @media only screen and (max-width: 679px) - // the children need to wrap on mobile as each child will be of 100% width - flex-wrap: wrap // Fix: align and size hover border like buttons in toolbar. .wp-edit-field.-no-label:not(.-active) .wp-table--cell-span @@ -237,13 +231,10 @@ body.controller-work_packages.full-create margin-top: 2px .work-packages--type-selector - @media only screen and (max-width: 679px) - // Give it some space to the back button (same as below to subject) - margin-top: 10px - // full width for mobile - width: 100% .wp-table--cell-span padding-right: 5px !important + &:after + content: ':' // Remove left padding from type .wp-edit-field--display-field diff --git a/frontend/app/components/routing/wp-show/wp.show.html b/frontend/app/components/routing/wp-show/wp.show.html index 27d198246a..d7c5e31e87 100644 --- a/frontend/app/components/routing/wp-show/wp.show.html +++ b/frontend/app/components/routing/wp-show/wp.show.html @@ -2,7 +2,7 @@ class="work-packages--show-view" ng-if="$ctrl.workPackage"> - +
@@ -22,7 +22,7 @@
diff --git a/frontend/app/components/work-packages/wp-watcher-button/wp-watcher-button.directive.html b/frontend/app/components/work-packages/wp-watcher-button/wp-watcher-button.directive.html index c821c633d4..ca42922bf6 100644 --- a/frontend/app/components/work-packages/wp-watcher-button/wp-watcher-button.directive.html +++ b/frontend/app/components/work-packages/wp-watcher-button/wp-watcher-button.directive.html @@ -3,5 +3,5 @@ - +