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
Only show notification read button on hover or focus
Benjamin Bädorf4f9150018945
diff --git a/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.html b/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.htmlindex 11f714fa972..a2daaeb14b5 100644--- a/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.html+++ b/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.html@@ -62,31 +62,24 @@</div><div- class="op-ian-item--reason-wrapper"- >+ class="op-ian-item--reason-wrapper"+ ><spanclass="op-ian-item--reason"*ngFor="let item of translatedReasons | keyvalue; let first = first; let last = last"><span- *ngIf="item.value > 1"- class="op-ian-item--reason-count"- [textContent]="item.value"+ *ngIf="item.value > 1"+ class="op-ian-item--reason-count"+ [textContent]="item.value"></span>{{ item.key }}<ng-container *ngIf="!last && first !== last">, </ng-container></span></div>- <div- class="op-ian-item--date"- [title]="fixedTime"- [textContent]="relativeTime$ | async"- ></div>-- <div- class="op-ian-item--buttons hidden-for-mobile"- >+ <div class="op-ian-item--buttons"><button+ *ngIf="!notification.readIAN"type="button"class="op-ian-item--button button -tiny"[disabled]="loading$ | async"@@ -95,6 +88,12 @@<i class="button--icon icon-yes"></i></button></div>++ <div+ class="op-ian-item--date"+ [title]="fixedTime"+ [textContent]="relativeTime$ | async"+ ></div></ng-container><ng-template #workPackageLoading>diff --git a/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.sass b/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.sassindex 4c3ca4c121a..14e1fa454b7 100644--- a/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.sass+++ b/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.sass@@ -30,7 +30,7 @@ $subject-font-size: 14pxdisplay: gridgrid-template-columns: 50px 1fr 200px 15% 15%grid-template-rows: auto $subject-font-size 1fr- grid-template-areas: "project project project project project" "title title status date buttons" "actors reason reason reason reason"+ grid-template-areas: "project project project project project" "title title status status date" "actors reason reason reason reason"grid-gap: 0.5remalign-items: center@@ -93,9 +93,17 @@ $subject-font-size: 14px@include text-shortener(false)white-space: nowrapmax-width: 100%+ text-align: right+@media screen and (max-width: 679px)justify-self: end++ &:hover &--date,+ &--buttons:focus-within + &--date+ opacity: 0+ @media screen and (max-width: 679px)+ opacity: 1&--actorsgrid-area: actors@@ -105,9 +113,20 @@ $subject-font-size: 14pxgrid-area: status&--buttons- grid-area: buttons+ grid-area: datetext-align: rightalign-items: end+ @media screen and (max-width: 679px)+ grid-area: buttons+&--buttonmargin: 0+ opacity: 0++ @media screen and (max-width: 679px)+ display: none++ &:hover &--button,+ &--button:focus+ opacity: 1