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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Move the "mark as read" button to the toolbar in full view and the bottom bar in split view, so that it is not strangly floating around. For the activity tab the distances to the tab header are harmonized.
Henriette Dargebc33b959fc7d
diff --git a/frontend/src/app/features/work-packages/components/work-package-comment/work-package-comment.component.html b/frontend/src/app/features/work-packages/components/work-package-comment/work-package-comment.component.htmlindex 6e69ca07885..d18e3d2d6a9 100644--- a/frontend/src/app/features/work-packages/components/work-package-comment/work-package-comment.component.html+++ b/frontend/src/app/features/work-packages/components/work-package-comment/work-package-comment.component.html@@ -5,6 +5,7 @@<divclass="work-package--details--long-field work-packages--activity--add-comment hide-when-print"+ [ngClass]="{'work-packages--activity--add-comment_top': showAbove} "#commentContainer*ngIf="canAddComment">diff --git a/frontend/src/app/features/work-packages/components/wp-buttons/wp-mark-notification-button/work-package-mark-notification-button.component.html b/frontend/src/app/features/work-packages/components/wp-buttons/wp-mark-notification-button/work-package-mark-notification-button.component.htmlindex f76a5e0ee43..11b4bec24b8 100644--- a/frontend/src/app/features/work-packages/components/wp-buttons/wp-mark-notification-button/work-package-mark-notification-button.component.html+++ b/frontend/src/app/features/work-packages/components/wp-buttons/wp-mark-notification-button/work-package-mark-notification-button.component.html@@ -1,8 +1,13 @@<button(click)="markAllBelongingNotificationsAsRead()"[attr.title]="text.mark_as_read"- [ngClass]="buttonClasses"class="button"><op-icon icon-classes="button--icon icon-mark-read"></op-icon>+ <span+ *ngIf="showWithText"+ class="button--text"+ [textContent]="text.mark_as_read"+ >+ </span></button>diff --git a/frontend/src/app/features/work-packages/components/wp-buttons/wp-mark-notification-button/work-package-mark-notification-button.component.ts b/frontend/src/app/features/work-packages/components/wp-buttons/wp-mark-notification-button/work-package-mark-notification-button.component.tsindex 8ee12ee3d66..27fc5ae873d 100644--- a/frontend/src/app/features/work-packages/components/wp-buttons/wp-mark-notification-button/work-package-mark-notification-button.component.ts+++ b/frontend/src/app/features/work-packages/components/wp-buttons/wp-mark-notification-button/work-package-mark-notification-button.component.ts@@ -11,7 +11,7 @@ import { WpSingleViewService } from 'core-app/features/work-packages/routing/wp-export class WorkPackageMarkNotificationButtonComponent {@Input() public workPackage:WorkPackageResource;- @Input() public buttonClasses:string;+ @Input() public showWithText:boolean;text = {mark_as_read: this.I18n.t('js.notifications.center.mark_as_read'),diff --git a/frontend/src/app/features/work-packages/components/wp-details/wp-details-toolbar.component.ts b/frontend/src/app/features/work-packages/components/wp-details/wp-details-toolbar.component.tsindex 740c156c17d..e4bb14b8353 100644--- a/frontend/src/app/features/work-packages/components/wp-details/wp-details-toolbar.component.ts+++ b/frontend/src/app/features/work-packages/components/wp-details/wp-details-toolbar.component.ts@@ -38,6 +38,8 @@ import { WorkPackageResource } from 'core-app/features/hal/resources/work-packagexport class WorkPackageSplitViewToolbarComponent {@Input('workPackage') workPackage:WorkPackageResource;+ @Input() displayNotificationsButton:boolean;+public text = {button_more: this.I18n.t('js.button_more'),};diff --git a/frontend/src/app/features/work-packages/components/wp-details/wp-details-toolbar.html b/frontend/src/app/features/work-packages/components/wp-details/wp-details-toolbar.htmlindex 7e00417061d..2429294c92d 100644--- a/frontend/src/app/features/work-packages/components/wp-details/wp-details-toolbar.html+++ b/frontend/src/app/features/work-packages/components/wp-details/wp-details-toolbar.html@@ -3,6 +3,13 @@[showText]="true"></wp-watcher-button>+ <op-work-package-mark-notification-button+ *ngIf="displayNotificationsButton"+ [workPackage]="workPackage"+ [showWithText]="true"+ data-qa-selector="mark-notification-read-button"+ ></op-work-package-mark-notification-button>+<button class="button dropdown-relative"[attr.accesskey]="7"diff --git a/frontend/src/app/features/work-packages/routing/wp-full-view/wp-full-view.html b/frontend/src/app/features/work-packages/routing/wp-full-view/wp-full-view.htmlindex 747e0a31a49..ea00bb95e1a 100644--- a/frontend/src/app/features/work-packages/routing/wp-full-view/wp-full-view.html+++ b/frontend/src/app/features/work-packages/routing/wp-full-view/wp-full-view.html@@ -30,6 +30,12 @@[showText]="false"></wp-watcher-button></li>+ <li class="toolbar-item" *ngIf="(displayNotificationsButton$ | async)">+ <op-work-package-mark-notification-button+ [workPackage]="workPackage"+ data-qa-selector="mark-notification-read-button"+ ></op-work-package-mark-notification-button>+ </li><li class="toolbar-item hidden-for-mobile"><zen-mode-toggle-button></zen-mode-toggle-button>@@ -56,15 +62,6 @@<div class="work-packages--panel-inner"><span class="hidden-for-sighted" tabindex="-1" opAutofocus [textContent]="focusAnchorLabel"></span><op-wp-tabs [workPackage]="workPackage" [view]="'full'"></op-wp-tabs>- <div class="work-packages-full-view--tab-breadcrumb">- <op-work-package-mark-notification-button- *ngIf="(displayNotificationsButton$ | async) && keepTab.currentTabIdentifier === 'activity'"- class="work-package--details-button"- [workPackage]="workPackage"- buttonClasses="-round button_no-margin"- data-qa-selector="mark-notification-read-button"- ></op-work-package-mark-notification-button>- </div><div class="tabcontent"data-notification-selector='notification-scroll-container'ui-view>diff --git a/frontend/src/app/features/work-packages/routing/wp-split-view/wp-split-view.html b/frontend/src/app/features/work-packages/routing/wp-split-view/wp-split-view.htmlindex 4c3ae75f31b..ef4d915bf08 100644--- a/frontend/src/app/features/work-packages/routing/wp-split-view/wp-split-view.html+++ b/frontend/src/app/features/work-packages/routing/wp-split-view/wp-split-view.html@@ -33,14 +33,6 @@<wp-subject class="subject-header"></wp-subject></div></div>-- <op-work-package-mark-notification-button- *ngIf="(displayNotificationsButton$ | async) && keepTab.currentTabIdentifier === 'activity'"- class="work-packages--details-button"- [workPackage]="workPackage"- buttonClasses="-round"- data-qa-selector="mark-notification-read-button"- ></op-work-package-mark-notification-button></div><div@@ -52,7 +44,10 @@</div><div class="work-packages--details-toolbar-container" *ngIf="workPackage">- <wp-details-toolbar [workPackage]="workPackage"></wp-details-toolbar>+ <wp-details-toolbar+ [workPackage]="workPackage"+ [displayNotificationsButton]="(displayNotificationsButton$ | async)"+ ></wp-details-toolbar></div><div class="work-packages--details--resizer hidden-for-mobile hide-when-print">diff --git a/frontend/src/global_styles/content/work_packages/tabs/_activities.sass b/frontend/src/global_styles/content/work_packages/tabs/_activities.sassindex 9e826698489..6a6a20ecfd2 100644--- a/frontend/src/global_styles/content/work_packages/tabs/_activities.sass+++ b/frontend/src/global_styles/content/work_packages/tabs/_activities.sass@@ -82,7 +82,7 @@ h4.comment.work-package-details-activities-listlist-style-type: none- margin: 20px 0 0 0+ margin: 0// Position first date with comment toggler.activity-date.-with-toggler@@ -137,3 +137,8 @@ ul.work-package-details-activities-messagesheight: 100pxdisplay: blockmargin-top: 17px++.work-packages--activity+ &--add-comment+ &_top+ margin-bottom: 20pxdiff --git a/frontend/src/global_styles/layout/work_packages/_details_view.sass b/frontend/src/global_styles/layout/work_packages/_details_view.sassindex cd0be70435c..79e9a8203cb 100644--- a/frontend/src/global_styles/layout/work_packages/_details_view.sass+++ b/frontend/src/global_styles/layout/work_packages/_details_view.sass@@ -135,17 +135,6 @@ body.router--work-packages-partitioned-split-view-new.work-packages--breadcrumbmargin-bottom: 4px-.work-packages--details-button- display: flex- align-items: center- margin-left: 4px-- button- margin-bottom: 0-- &:only-child- margin-right: 4px-.work-packages--type-selectorflex-shrink: 0diff --git a/frontend/src/global_styles/layout/work_packages/_full_view.sass b/frontend/src/global_styles/layout/work_packages/_full_view.sassindex ee4ef9ae3fa..4049b7beb9f 100644--- a/frontend/src/global_styles/layout/work_packages/_full_view.sass+++ b/frontend/src/global_styles/layout/work_packages/_full_view.sass@@ -136,10 +136,6 @@&::beforeleft: 0- &--tab-breadcrumb- text-align: right- padding-right: 1rem-.nosidebarul.subject-headerwidth: 67%