Break apart subjects in the relation block

pull/4962/head
Oliver Günther 8 years ago
parent 4298acc33c
commit db67004a7a
No known key found for this signature in database
GPG Key ID: 88872239EB414F99
  1. 4
      app/assets/stylesheets/content/work_packages/tabs/_relations.sass
  2. 1
      frontend/app/components/wp-relations/wp-relation-row/wp-relation-row.template.html
  3. 1
      frontend/app/components/wp-relations/wp-relations-hierarchy-row/wp-relations-hierarchy-row.template.html

@ -93,5 +93,9 @@
.wp-relations-status-field .wp-relations-status-field
margin-left: 2px margin-left: 2px
// Break apart long subjects in the rather small block
.wp-relations--subject-field
word-break: break-all

@ -10,6 +10,7 @@
<div class="grid-content medium-5 collapse" wp-single-relation <div class="grid-content medium-5 collapse" wp-single-relation
ng-if="$ctrl.relatedWorkPackage"> ng-if="$ctrl.relatedWorkPackage">
<a href="{{ singleRelationCtrl.workPackagePath($ctrl.relatedWorkPackage.id) }}" <a href="{{ singleRelationCtrl.workPackagePath($ctrl.relatedWorkPackage.id) }}"
class="wp-relations--subject-field"
aria-label="{{ $ctrl.relation.type + ' ' + singleRelationCtrl.getFullIdentifier($ctrl.relatedWorkPackage, true) }}"> aria-label="{{ $ctrl.relation.type + ' ' + singleRelationCtrl.getFullIdentifier($ctrl.relatedWorkPackage, true) }}">
{{ singleRelationCtrl.getFullIdentifier($ctrl.relatedWorkPackage, true) }} {{ singleRelationCtrl.getFullIdentifier($ctrl.relatedWorkPackage, true) }}
</a> </a>

@ -7,6 +7,7 @@
<span ng-style="{'padding-left': $ctrl.indentBy + 'px'}" <span ng-style="{'padding-left': $ctrl.indentBy + 'px'}"
class="wp-relations-hierarchy-subject"> class="wp-relations-hierarchy-subject">
<a href="{{ singleRelationCtrl.workPackagePath($ctrl.relatedWorkPackage.id) }}" <a href="{{ singleRelationCtrl.workPackagePath($ctrl.relatedWorkPackage.id) }}"
class="wp-relations--subject-field"
ng-if="!$ctrl.isCurrentElement()" ng-if="!$ctrl.isCurrentElement()"
aria-label="{{ ($ctrl.isParent() ? $ctrl.text.parent : $ctrl.text.children) + ' ' + singleRelationCtrl.getFullIdentifier($ctrl.relatedWorkPackage) }}" aria-label="{{ ($ctrl.isParent() ? $ctrl.text.parent : $ctrl.text.children) + ' ' + singleRelationCtrl.getFullIdentifier($ctrl.relatedWorkPackage) }}"
ng-attr-id="{{ $ctrl.isParent() ? 'hierarchy--parent' : ''}}"> ng-attr-id="{{ $ctrl.isParent() ? 'hierarchy--parent' : ''}}">

Loading…
Cancel
Save