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

Correct width of inline buttons on mobile, to ensure that they look correct

Henriette Dargec5957cd3b3a3
diff --git a/frontend/src/app/features/in-app-notifications/bell/in-app-notification-bell.component.ts b/frontend/src/app/features/in-app-notifications/bell/in-app-notification-bell.component.ts
index aece1ea9206..69c27c92cae 100644
--- a/frontend/src/app/features/in-app-notifications/bell/in-app-notification-bell.component.ts
+++ b/frontend/src/app/features/in-app-notifications/bell/in-app-notification-bell.component.ts
@@ -2,7 +2,6 @@ import { ChangeDetectionStrategy, Component } from '@angular/core';
import { InAppNotificationsQuery } from 'core-app/features/in-app-notifications/store/in-app-notifications.query';
import { InAppNotificationsService } from 'core-app/features/in-app-notifications/store/in-app-notifications.service';
import { OpModalService } from 'core-app/shared/components/modal/modal.service';
-import { InAppNotificationCenterComponent } from 'core-app/features/in-app-notifications/center/in-app-notification-center.component';
import { merge, timer } from 'rxjs';
import { filter, switchMap } from 'rxjs/operators';
import { ActiveWindowService } from 'core-app/core/active-window/active-window.service';
diff --git a/frontend/src/app/features/in-app-notifications/center/in-app-notification-center-page.component.ts b/frontend/src/app/features/in-app-notifications/center/in-app-notification-center-page.component.ts
index 6c318f42524..ef550b00a67 100644
--- a/frontend/src/app/features/in-app-notifications/center/in-app-notification-center-page.component.ts
+++ b/frontend/src/app/features/in-app-notifications/center/in-app-notification-center-page.component.ts
@@ -15,7 +15,6 @@ import {
} from '@uirouter/core';
import { NotificationsService } from 'core-app/shared/components/notifications/notifications.service';
import { I18nService } from 'core-app/core/i18n/i18n.service';
-import { UntilDestroyedMixin } from 'core-app/shared/helpers/angular/until-destroyed.mixin';
import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';
import { NotificationSettingsButtonComponent } from 'core-app/features/in-app-notifications/center/toolbar/settings/notification-settings-button.component';
import { ActivateFacetButtonComponent } from 'core-app/features/in-app-notifications/center/toolbar/facet/activate-facet-button.component';
diff --git a/frontend/src/app/features/in-app-notifications/center/toolbar/facet/activate-facet-button.component.html b/frontend/src/app/features/in-app-notifications/center/toolbar/facet/activate-facet-button.component.html
index 5393752bbbc..cd2cbc4a183 100644
--- a/frontend/src/app/features/in-app-notifications/center/toolbar/facet/activate-facet-button.component.html
+++ b/frontend/src/app/features/in-app-notifications/center/toolbar/facet/activate-facet-button.component.html
@@ -6,7 +6,7 @@
(click)="activateFacet(facet)"
>
<span
- class="button--text"
+ class="button--text button--text_without_icon"
[textContent]="text.facets[facet]"
>
</span>
diff --git a/frontend/src/app/features/in-app-notifications/center/toolbar/facet/activate-facet-button.component.ts b/frontend/src/app/features/in-app-notifications/center/toolbar/facet/activate-facet-button.component.ts
index 6d6ac1a436a..14c4e381817 100644
--- a/frontend/src/app/features/in-app-notifications/center/toolbar/facet/activate-facet-button.component.ts
+++ b/frontend/src/app/features/in-app-notifications/center/toolbar/facet/activate-facet-button.component.ts
@@ -1,4 +1,4 @@
-import { Component, OnInit, ChangeDetectionStrategy } from '@angular/core';
+import { Component, ChangeDetectionStrategy } from '@angular/core';
import { IAN_FACETS } from 'core-app/features/in-app-notifications/store/in-app-notification.model';
import { I18nService } from 'core-app/core/i18n/i18n.service';
import { InAppNotificationsQuery } from 'core-app/features/in-app-notifications/store/in-app-notifications.query';
@@ -24,7 +24,8 @@ export class ActivateFacetButtonComponent {
constructor(
private I18n:I18nService,
private ianQuery:InAppNotificationsQuery,
- private ianService:InAppNotificationsService) {
+ private ianService:InAppNotificationsService,
+ ) {
}
activateFacet(facet:string):void {
diff --git a/frontend/src/app/features/in-app-notifications/center/toolbar/mark-all-as-read/mark-all-as-read-button.component.ts b/frontend/src/app/features/in-app-notifications/center/toolbar/mark-all-as-read/mark-all-as-read-button.component.ts
index 1fb2846a7a1..e7a1792f708 100644
--- a/frontend/src/app/features/in-app-notifications/center/toolbar/mark-all-as-read/mark-all-as-read-button.component.ts
+++ b/frontend/src/app/features/in-app-notifications/center/toolbar/mark-all-as-read/mark-all-as-read-button.component.ts
@@ -15,7 +15,8 @@ export class MarkAllAsReadButtonComponent {
constructor(
private I18n:I18nService,
- private ianService:InAppNotificationsService,) {
+ private ianService:InAppNotificationsService,
+ ) {
}
markAllRead():void {
diff --git a/frontend/src/app/features/in-app-notifications/center/toolbar/settings/notification-settings-button.component.ts b/frontend/src/app/features/in-app-notifications/center/toolbar/settings/notification-settings-button.component.ts
index 03f3b59e3e8..97fa037304e 100644
--- a/frontend/src/app/features/in-app-notifications/center/toolbar/settings/notification-settings-button.component.ts
+++ b/frontend/src/app/features/in-app-notifications/center/toolbar/settings/notification-settings-button.component.ts
@@ -16,6 +16,7 @@ export class NotificationSettingsButtonComponent {
constructor(
private I18n:I18nService,
- private pathHelper:PathHelperService) {
+ private pathHelper:PathHelperService,
+ ) {
}
}
diff --git a/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.ts b/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.ts
index 6120e7722cf..d08ac58b43d 100644
--- a/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.ts
+++ b/frontend/src/app/features/in-app-notifications/entry/in-app-notification-entry.component.ts
@@ -147,11 +147,11 @@ export class InAppNotificationEntryComponent implements OnInit {
});
}
- projectClicked(event:MouseEvent) {
+ projectClicked(event:MouseEvent):void {
event.stopPropagation();
}
- markAsRead(event:MouseEvent, notifications:InAppNotification[]) {
+ markAsRead(event:MouseEvent, notifications:InAppNotification[]):void {
event.stopPropagation();
this
diff --git a/frontend/src/app/features/in-app-notifications/in-app-notifications.module.ts b/frontend/src/app/features/in-app-notifications/in-app-notifications.module.ts
index 0238ec29baa..f69f628ec3f 100644
--- a/frontend/src/app/features/in-app-notifications/in-app-notifications.module.ts
+++ b/frontend/src/app/features/in-app-notifications/in-app-notifications.module.ts
@@ -1,4 +1,5 @@
import { NgModule } from '@angular/core';
+import { OPSharedModule } from 'core-app/shared/shared.module';
import { CommonModule } from '@angular/common';
import { IconModule } from 'core-app/shared/components/icon/icon.module';
import { InAppNotificationBellComponent } from 'core-app/features/in-app-notifications/bell/in-app-notification-bell.component';
@@ -15,7 +16,6 @@ import { InAppNotificationStatusComponent } from './entry/status/in-app-notifica
import { NotificationSettingsButtonComponent } from './center/toolbar/settings/notification-settings-button.component';
import { ActivateFacetButtonComponent } from './center/toolbar/facet/activate-facet-button.component';
import { MarkAllAsReadButtonComponent } from './center/toolbar/mark-all-as-read/mark-all-as-read-button.component';
-import { OPSharedModule } from 'core-app/shared/shared.module';
@NgModule({
declarations: [
diff --git a/frontend/src/app/features/in-app-notifications/in-app-notifications.routes.ts b/frontend/src/app/features/in-app-notifications/in-app-notifications.routes.ts
index d00d3a1c045..b1a3347dd7c 100644
--- a/frontend/src/app/features/in-app-notifications/in-app-notifications.routes.ts
+++ b/frontend/src/app/features/in-app-notifications/in-app-notifications.routes.ts
@@ -62,4 +62,4 @@ export const IAN_ROUTES:Ng2StateDeclaration[] = [
undefined,
WorkPackageSplitViewComponent,
),
-];
\ No newline at end of file
+];
diff --git a/frontend/src/global_styles/content/_forms_mobile.sass b/frontend/src/global_styles/content/_forms_mobile.sass
index 17dbcaf2c6b..66944cfa7fb 100644
--- a/frontend/src/global_styles/content/_forms_mobile.sass
+++ b/frontend/src/global_styles/content/_forms_mobile.sass
@@ -60,6 +60,10 @@
autocomplete-select-decoration
width: 100%
+ .form--field-inline-buttons-container
+ .form--field-inline-button
+ width: auto !important
+
.-browser-safari
// Special rule for mobile safari to prevent zooming into the text field
// when focussed.
diff --git a/frontend/src/global_styles/layout/_toolbar_mobile.sass b/frontend/src/global_styles/layout/_toolbar_mobile.sass
index 72306d509bf..e9752ab9afe 100644
--- a/frontend/src/global_styles/layout/_toolbar_mobile.sass
+++ b/frontend/src/global_styles/layout/_toolbar_mobile.sass
@@ -44,7 +44,7 @@
margin: 0 0 10px 10px
// Hide toolbar button texts on mobile
- .button--text,
+ .button--text:not(.button--text_without_icon),
.icon-pulldown
display: none