[44472] Modal dialogues - leftover issues from WP 43842 (#11439)

* fix spacing issuesw in summary of invite user modal

* fix spacing issued for onboarding video modal

* adding correct classes for descriptions in summary component in invite user modal
pull/11494/head
Behrokh Satarnejad 2 years ago committed by GitHub
parent 62a7b152a2
commit a21a4f26b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      frontend/src/app/features/invite-user-modal/summary/summary.component.html
  2. 6
      frontend/src/app/features/invite-user-modal/summary/summary.component.sass
  3. 2
      frontend/src/app/shared/components/modal/modal-wrapper-augment.service.ts
  4. 2
      frontend/src/global_styles/openproject/_onboarding.sass

@ -8,22 +8,24 @@
<div class="spot-divider"></div>
<div class="spot-modal--body spot-container">
<spot-form-field [label]="text.projectLabel">
<p slot="input">{{ project.name }}</p>
<p slot="input" class="spot-body-small op-ium-summary--details">{{ project.name }}</p>
</spot-form-field>
<div class="op-ium-summary__row">
<spot-form-field [label]="text.principalLabel[type]">
<p slot="input">{{ principal?.name }}</p>
<p slot="input" class="spot-body-small op-ium-summary--details">{{ principal?.name }}</p>
</spot-form-field>
<spot-form-field [label]="text.roleLabel()">
<p slot="input">{{ role.name }}</p>
<p slot="input" class="spot-body-small op-ium-summary--details">{{ role.name }}</p>
</spot-form-field>
</div>
<spot-form-field
[label]="text.messageLabel"
*ngIf="type !== PrincipalType.Placeholder && message"
>
<p slot="input" class="op-ium-summary-message">{{ message }}</p>
<p slot="input" class="spot-body-small op-ium-summary--message">{{ message }}</p>
</spot-form-field>
</div>

@ -1,2 +1,6 @@
.op-ium-summary-message
.op-ium-summary
&--message
white-space: pre-wrap
&--details
margin-bottom: 0

@ -99,7 +99,7 @@ export class OpModalWrapperAugmentService {
}
private appendIframe(body:JQuery<HTMLElement>, url:string) {
const iframe = jQuery('<iframe frameborder="0" height="400" allowfullscreen>></iframe>');
const iframe = jQuery('<iframe frameborder="0" height="350" allowfullscreen>></iframe>');
iframe.attr('src', url);
body.find(iframeSelector).append(iframe);

@ -31,9 +31,11 @@
display: flex
justify-content: space-between
flex-direction: column
margin-bottom: 0
.onboarding--video-text
line-height: 1.25
margin-bottom: 1.25rem
.onboarding--video
align-self: center

Loading…
Cancel
Save