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

[38102] Avoid link as grid-area, instead wrap in element

Oliver Günthercd4331b8569f
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.html
index b6bf34bbcf5..12d4b33bf4b 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
@@ -9,14 +9,18 @@
class="op-ian-item--row"
(click)="toggleDetails()"
>
- <a
- *ngIf="project"
- class="op-ian-item--project"
- [href]="project.showUrl"
- [textContent]="project.title"
- (click)="projectClicked($event)"
- target="_blank"
- ></a>
+ <div
+ *ngIf="project"
+ class="op-ian-item--project"
+ >
+ <a
+ class="op-ian-item--project-link"
+ [href]="project.showUrl"
+ [textContent]="project.title"
+ (click)="projectClicked($event)"
+ target="_blank"
+ ></a>
+ </div>
<ng-container *ngIf="workPackage$ && (workPackage$ | async) as workPackage; else workPackageLoading">
<span
class="op-ian-item--title"
@@ -101,4 +105,4 @@
</ng-container>
</ul>
</div>
-</div>
\ No newline at end of file
+</div>
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.sass
index 6697bb3a749..6a8f8f18b19 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
@@ -58,9 +58,14 @@ $ian-bg-hover-color: #F1F8FF
&--project
grid-area: project
font-size: 0.8rem
- color: var(--gray-dark)
@include text-shortener
+ &--project-link
+ color: var(--gray-dark)
+ // Set line-height to show underline
+ // which is otherwise swallowed by overflow
+ line-height: 1.1
+
&--reason,
&--date
color: var(--gray-dark)