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

hide the buttons and assignee name in mobile mode and align header items to the left side of screen

bsatarnejad1e67b8b1daa7
diff --git a/frontend/src/app/features/team-planner/team-planner/planner/team-planner.component.html b/frontend/src/app/features/team-planner/team-planner/planner/team-planner.component.html
index 4d444138020..dbd8fa2029a 100644
--- a/frontend/src/app/features/team-planner/team-planner/planner/team-planner.component.html
+++ b/frontend/src/app/features/team-planner/team-planner/planner/team-planner.component.html
@@ -3,7 +3,7 @@
[ngClass]="{'op-team-planner_with_left_side_pane' : (showAddExistingPane | async)}"
>
<ng-container
- *ngIf="(calendarOptions$ | async) as calendarOptions"
+ *ngIf="(calendarOptions$ | async) && !(isMobile$ | async)"
>
<button
#addExistingToggle
@@ -71,6 +71,7 @@
<op-principal
[principal]="resource.extendedProps.principal"
class="tp-assignee--principal op-principal_wrapped"
+ [hideName]="isMobile$ | async"
></op-principal>
<button
type="button"
diff --git a/frontend/src/global_styles/content/modules/_team_planner.sass b/frontend/src/global_styles/content/modules/_team_planner.sass
index 1ea8b2116da..e14e1933706 100644
--- a/frontend/src/global_styles/content/modules/_team_planner.sass
+++ b/frontend/src/global_styles/content/modules/_team_planner.sass
@@ -62,3 +62,13 @@
.op-team-planner--wp-loading-skeleton
svg
height: 80px
+
+ @media screen and (max-width: 679px)
+ .fc-header-toolbar
+ padding-left: 0
+ .fc-today-button + .fc-button-group
+ display: none
+ .fc-toolbar-chunk:first-child
+ display: none
+ .spot-icon_user + span
+ display: none
\ No newline at end of file