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

Use existing class for adding spacing to the left side of banner in a board && take care that the texts have the same styling

Henriette Darge0e544a8b9328
diff --git a/frontend/src/app/features/boards/board/board-partitioned-page/board-list-container.component.html b/frontend/src/app/features/boards/board/board-partitioned-page/board-list-container.component.html
index a583b21e8c5..bb3d0a9826b 100644
--- a/frontend/src/app/features/boards/board/board-partitioned-page/board-list-container.component.html
+++ b/frontend/src/app/features/boards/board/board-partitioned-page/board-list-container.component.html
@@ -40,15 +40,14 @@
</div>
</div>
</div>
- <div class="boards-list--ee-banner"
- *ngIf="eeShowBanners">
- <op-enterprise-banner
- [moreInfoText]="text.more_info_text"
- [moreInfoLink]="text.more_info_link"
- [leftMargin]="true"
- [linkMessage]="text.upgrade_to_ee_text"
- [textMessage]="text.teaser_text"
- opReferrer="boards#board-show">
- </op-enterprise-banner>
- </div>
-</ng-container>
\ No newline at end of file
+
+ <op-enterprise-banner
+ *ngIf="eeShowBanners"
+ [moreInfoText]="text.more_info_text"
+ [moreInfoLink]="text.more_info_link"
+ [leftMargin]="true"
+ [linkMessage]="text.upgrade_to_ee_text"
+ [textMessage]="text.teaser_text"
+ opReferrer="boards#board-show">
+ </op-enterprise-banner>
+</ng-container>
diff --git a/frontend/src/app/features/boards/board/board-partitioned-page/board-list-container.component.sass b/frontend/src/app/features/boards/board/board-partitioned-page/board-list-container.component.sass
index de87893b3ff..05673d8049b 100644
--- a/frontend/src/app/features/boards/board/board-partitioned-page/board-list-container.component.sass
+++ b/frontend/src/app/features/boards/board/board-partitioned-page/board-list-container.component.sass
@@ -65,6 +65,3 @@ $board-list-top-offset: 18px
.boards-list--tooltip
align-self: start
margin-top: $board-list-top-offset
-
-.boards-list--ee-banner
- padding-left: 20px
\ No newline at end of file
diff --git a/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.html b/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.html
index c91a0b18ef7..39382f1ef2e 100644
--- a/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.html
+++ b/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.html
@@ -15,9 +15,9 @@
<span class="op-enterprise-banner--description op-enterprise-banner--description" [innerHtml]="textMessage"></span>
- <strong [textContent]="text.become_hero"></strong> &nbsp;
-
- <span [textContent]="text.you_contribute"></span>
+ <span class="op-enterprise-banner--description">
+ <strong [textContent]="text.become_hero"></strong> {{text.you_contribute}}
+ </span>
<div class="op-enterprise-banner--buttons">
<a
diff --git a/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.sass b/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.sass
index fa2e2349286..080145b8313 100644
--- a/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.sass
+++ b/frontend/src/app/shared/components/enterprise-banner/enterprise-banner.component.sass
@@ -8,12 +8,14 @@
margin-top: 10px
&--description
- margin-bottom: 10px
display: block
font-size: 14px
font-weight: 400
line-height: 16px
+ &:first-of-type
+ margin-bottom: 10px
+
&--image
width: 115px
height: 75px
@@ -27,4 +29,3 @@
&--info-button
padding-top: 20px
padding-right: 25px
-
diff --git a/frontend/src/global_styles/content/_toast.sass b/frontend/src/global_styles/content/_toast.sass
index 6b4f702946b..84b2e304eb1 100644
--- a/frontend/src/global_styles/content/_toast.sass
+++ b/frontend/src/global_styles/content/_toast.sass
@@ -137,6 +137,9 @@ $nm-upload-box-padding: rem-calc(15) rem-calc(25)
&.-ee-upsale
z-index: 1
+ &.-left-margin
+ margin-left: 20px
+
&.-error
@extend %error-placeholder
&::before