From fddef8387036a1f068fe661177bdf237c0dc668a Mon Sep 17 00:00:00 2001 From: Henriette Dinger Date: Thu, 25 Aug 2016 10:18:52 +0200 Subject: [PATCH 1/2] Implement two column layout for WP view --- .../stylesheets/layout/_work_package.sass | 11 +++ .../wp-single-view.directive.html | 98 ++++++++++--------- 2 files changed, 61 insertions(+), 48 deletions(-) diff --git a/app/assets/stylesheets/layout/_work_package.sass b/app/assets/stylesheets/layout/_work_package.sass index f2d97e196b..6b87783577 100644 --- a/app/assets/stylesheets/layout/_work_package.sass +++ b/app/assets/stylesheets/layout/_work_package.sass @@ -299,3 +299,14 @@ .work-package--attachments--filename width: rem-calc(354) display: inline-block + +// Implement two column layout for WP full screen view +@media screen and (min-width: 62rem) + .action-show .attributes-group + .-columns-2 + column-count: 2 + + .attributes-key-value + -webkit-column-break-inside: avoid + page-break-inside: avoid + break-inside: avoid diff --git a/frontend/app/components/work-packages/wp-single-view/wp-single-view.directive.html b/frontend/app/components/work-packages/wp-single-view/wp-single-view.directive.html index 2d0950b01e..a6b317c892 100644 --- a/frontend/app/components/work-packages/wp-single-view/wp-single-view.directive.html +++ b/frontend/app/components/work-packages/wp-single-view/wp-single-view.directive.html @@ -37,63 +37,65 @@ -
+
+ class="attributes-key-value" + ng-repeat="field in group.attributes"> +
- {{$ctrl.singleViewWp.getLabel(field)}} + {{$ctrl.singleViewWp.getLabel(field)}} - * -
-
-
- -
+ * +
+
+
- {{$ctrl.singleViewWp.getLabel(field.label)}} +
- * -
-
+ {{$ctrl.singleViewWp.getLabel(field.label)}} -
+ *
+
- +
+
-
+ + +
+
From a702b574749be7a48ae42b4509eb35a30f09d370 Mon Sep 17 00:00:00 2001 From: Henriette Dinger Date: Thu, 25 Aug 2016 12:03:56 +0200 Subject: [PATCH 2/2] Increase breakpoint and gap between WP columns --- app/assets/stylesheets/layout/_work_package.sass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/layout/_work_package.sass b/app/assets/stylesheets/layout/_work_package.sass index 6b87783577..838b56b6f9 100644 --- a/app/assets/stylesheets/layout/_work_package.sass +++ b/app/assets/stylesheets/layout/_work_package.sass @@ -301,10 +301,11 @@ display: inline-block // Implement two column layout for WP full screen view -@media screen and (min-width: 62rem) +@media screen and (min-width: 90rem) .action-show .attributes-group .-columns-2 column-count: 2 + column-gap: 4rem .attributes-key-value -webkit-column-break-inside: avoid