Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

add a sass file for component styles

bsatarnejadee3402c46a07
diff --git a/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component.html b/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component.html
index 19c770089aa..317d2df7114 100644
--- a/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component.html
+++ b/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component.html
@@ -43,7 +43,7 @@
formControlName="email" (blur)="checkMailField()">
</div>
</div>
- <div *ngIf="eeTrialService.emailError" class="form--field-instructions">{{ eeTrialService.errorMsg }}</div>
+ <div *ngIf="eeTrialService.emailError" class="form--field-instructions ee-trial-email-error">{{ eeTrialService.errorMsg }}</div>
</div>
<div class="form--field -wide-label -required">
<label class="form--label" for="trial-domain-name">{{ text.label_domain }}</label>
diff --git a/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component.sass b/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component.sass
new file mode 100644
index 00000000000..c7073ae97f2
--- /dev/null
+++ b/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component.sass
@@ -0,0 +1,2 @@
+.ee-trial-email-error
+ width: min-content
\ No newline at end of file
diff --git a/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component.ts b/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component.ts
index 634d75fc0d8..1eda5e98ed5 100644
--- a/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component.ts
+++ b/frontend/src/app/components/enterprise/enterprise-modal/enterprise-trial-form/ee-trial-form.component.ts
@@ -37,7 +37,8 @@ const newsletterURL = 'https://www.openproject.com/newsletter/';
@Component({
selector: 'enterprise-trial-form',
- templateUrl: './ee-trial-form.component.html'
+ templateUrl: './ee-trial-form.component.html',
+ styleUrls: ['./ee-trial-form.component.sass']
})
export class EETrialFormComponent {
// Retain used values
diff --git a/frontend/src/global_styles/content/_forms.sass b/frontend/src/global_styles/content/_forms.sass
index a4536126924..e231620259a 100644
--- a/frontend/src/global_styles/content/_forms.sass
+++ b/frontend/src/global_styles/content/_forms.sass
@@ -472,7 +472,7 @@ fieldset.form--fieldset
.form--field-instructions
@extend %form--field-after-container
font-style: italic
- width: min-content
+ max-width: 500px
// improve readability
&.-no-margin