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

Adapt basic styles for mobile notification center

Henriette Darged84a4f907c00
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 07353198248..7e935ddf2f6 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
@@ -66,7 +66,7 @@
</div>
<div
- class="op-ian-item--status"
+ class="op-ian-item--status hidden-for-mobile"
>
<op-in-app-notification-status [status]="workPackage.status"></op-in-app-notification-status>
</div>
@@ -94,7 +94,7 @@
></div>
<div
- class="op-ian-item--buttons"
+ class="op-ian-item--buttons hidden-for-mobile"
>
<button
type="button"
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 4d32e5fea0b..b22e84ef4b9 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
@@ -35,9 +35,8 @@ $subject-font-size: 14px
align-items: center
@media screen and (max-width: 679px)
- grid-template-columns: 1fr 35px 30%
- grid-template-rows: auto 1fr
- grid-template-areas: "project actor reason" "title actor date"
+ grid-template-columns: 50px 1fr 15% 15%
+ grid-template-areas: "project project date date" "title title title title" "actor reason reason reason"
&_unexpandable
cursor: default
@@ -91,14 +90,15 @@ $subject-font-size: 14px
grid-area: reason
@include text-shortener
max-width: 100%
- @media screen and (max-width: 679px)
- justify-self: end
&--date
grid-area: date
@include text-shortener(false)
white-space: nowrap
max-width: 100%
+ @media screen and (max-width: 679px)
+ justify-self: end
+
&--actor
grid-area: actor
diff --git a/frontend/src/global_styles/layout/_base_mobile.sass b/frontend/src/global_styles/layout/_base_mobile.sass
index 0bbd2d6620c..d86af271d31 100644
--- a/frontend/src/global_styles/layout/_base_mobile.sass
+++ b/frontend/src/global_styles/layout/_base_mobile.sass
@@ -55,6 +55,9 @@
#content-wrapper
height: initial
+ // Take care that the wrapper has the available screen height at the least
+ // Check for example notification center on mobile before changing that
+ min-height: calc(100vh - var(--header-height))
// ------------------- END CHANGED SCROLL BEHAVIOR
#content-wrapper