Merge pull request #6955 from opf/fix/wp-attributes-truncation

[29191] Fix wp attributes truncation
pull/6970/head
Henriette Dinger 6 years ago committed by GitHub
commit 0bb9434a02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      app/assets/stylesheets/content/_attributes_key_value.sass
  2. 4
      frontend/src/app/components/work-packages/wp-single-view/wp-single-view.html
  3. 4
      frontend/src/app/components/wp-form-group/wp-attribute-group.template.html

@ -37,10 +37,15 @@
@extend .form--label @extend .form--label
@include grid-size(4) @include grid-size(4)
@include text-shortener @include text-shortener
display: flex
margin-bottom: 0.1875rem margin-bottom: 0.1875rem
padding: 0.375rem 0 !important padding: 0.375rem 0 !important
font-weight: bold font-weight: bold
align-self: center align-self: center
// Ensure that the text is shortened while the help icon will be displayed
> wp-replacement-label
@include text-shortener
flex: 0 1 auto
.attributes-key-value--value-container .attributes-key-value--value-container
@include grid-content(8) @include grid-content(8)

@ -47,9 +47,9 @@
{{ descriptor.label }} {{ descriptor.label }}
<span class="required" <span class="required"
*ngIf="descriptor.field.required && descriptor.field.writable">*</span> *ngIf="descriptor.field.required && descriptor.field.writable">*</span>
<attribute-help-text [attribute]="descriptor.name"
[attributeScope]="'WorkPackage'"></attribute-help-text>
</wp-replacement-label> </wp-replacement-label>
<attribute-help-text [attribute]="descriptor.name"
[attributeScope]="'WorkPackage'"></attribute-help-text>
</div> </div>
<div class="attributes-key-value--value-container"> <div class="attributes-key-value--value-container">
<wp-edit-field [workPackageId]="workPackage.id" <wp-edit-field [workPackageId]="workPackage.id"

@ -10,8 +10,8 @@
{{ descriptor.label }} {{ descriptor.label }}
<span class="required" <span class="required"
*ngIf="descriptor.field!.required && descriptor.field!.writable"> *</span> *ngIf="descriptor.field!.required && descriptor.field!.writable"> *</span>
<attribute-help-text [attribute]="descriptor.name" [attributeScope]="'WorkPackage'"></attribute-help-text>
</wp-replacement-label> </wp-replacement-label>
<attribute-help-text [attribute]="descriptor.name" [attributeScope]="'WorkPackage'"></attribute-help-text>
</div> </div>
<div *ngIf="!descriptor.multiple && descriptor.field" <div *ngIf="!descriptor.multiple && descriptor.field"
class="attributes-key-value--value-container"> class="attributes-key-value--value-container">
@ -33,8 +33,8 @@
*ngIf="descriptor.multiple"> *ngIf="descriptor.multiple">
<wp-replacement-label [fieldName]="descriptor.name"> <wp-replacement-label [fieldName]="descriptor.name">
{{ descriptor.label }} {{ descriptor.label }}
<attribute-help-text [attribute]="descriptor.name" [attributeScope]="'WorkPackage'"></attribute-help-text>
</wp-replacement-label> </wp-replacement-label>
<attribute-help-text [attribute]="descriptor.name" [attributeScope]="'WorkPackage'"></attribute-help-text>
</div> </div>
<div <div
*ngIf="descriptor.multiple" *ngIf="descriptor.multiple"

Loading…
Cancel
Save