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

Make the LoadingIndicator look a bit more sophisticated with lines of different lengths and a bubble at the end

Henriette Dargeffbeed320e32
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 daa104af2d3..89f99ccfe8c 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
@@ -103,14 +103,22 @@
</div>
</ng-container>
<ng-template #workPackageLoading>
- <op-content-loader
- *ngIf="workPackage$"
- class="op-ian-item--loading"
- viewBox="0 0 1000 20"
- >
- <svg:rect x="0" y="0" width="100%" height="5" rx="1" />
- <svg:rect x="0" y="7" width="100%" height="5" rx="1" />
- <svg:rect x="0" y="14" width="100%" height="5" rx="1" />
- </op-content-loader>
+ <div class="op-ian-item--loading">
+ <op-content-loader
+ *ngIf="workPackage$"
+ class="op-ian-item--loading-indicator"
+ viewBox="0 0 200 20"
+ >
+ <svg:rect x="0" y="0" width="100%" height="5" rx="1" />
+ <svg:rect x="0" y="7" width="100%" height="5" rx="1" />
+ <svg:rect x="0" y="14" width="80%" height="5" rx="1" />
+ </op-content-loader>
+
+ <span class="op-ian-item--reason-count"></span>
+ <div class="op-ian-item--buttons">
+ <i class="op-ian-item--button icon-mark-read">
+ </i>
+ </div>
+ </div>
</ng-template>
</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 797d9ed72c2..f9b7a914b67 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
@@ -115,10 +115,17 @@ $subject-font-size: 14px
&_shown-on-focus
@include show-on-focus
- &--loading
+ &--loading-indicator
height: 100%
display: block
+ grid-area: loadingIndicator
svg
// Height - padding
height: calc(#{$ian-height} - 30px)
+
+ &--loading
+ display: grid
+ grid-template-columns: max-content auto minmax(20px, max-content)
+ grid-template-areas: "loadingIndicator count buttons"
+ grid-column-gap: 5px