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

Set a fixed width for the modal to prevent jumpiness

Aaron Contrerasc3f8d600291a
diff --git a/frontend/src/app/shared/components/fields/edit/field-types/progress-popover-edit-field.component.sass b/frontend/src/app/shared/components/fields/edit/field-types/progress-popover-edit-field.component.sass
new file mode 100644
index 00000000000..74a17c3b100
--- /dev/null
+++ b/frontend/src/app/shared/components/fields/edit/field-types/progress-popover-edit-field.component.sass
@@ -0,0 +1,3 @@
+@media screen and (min-width: $breakpoint-lg)
+ .spot-modal--body
+ width: 500px
diff --git a/frontend/src/app/shared/components/fields/edit/field-types/progress-popover-edit-field.component.ts b/frontend/src/app/shared/components/fields/edit/field-types/progress-popover-edit-field.component.ts
index 4127f34d952..38f71e1808a 100644
--- a/frontend/src/app/shared/components/fields/edit/field-types/progress-popover-edit-field.component.ts
+++ b/frontend/src/app/shared/components/fields/edit/field-types/progress-popover-edit-field.component.ts
@@ -63,6 +63,7 @@ import { TimezoneService } from 'core-app/core/datetime/timezone.service';
@Component({
templateUrl: './progress-popover-edit-field.component.html',
+ styleUrls: ['./progress-popover-edit-field.component.sass'],
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class ProgressPopoverEditFieldComponent extends ProgressEditFieldComponent implements OnInit, AfterViewInit, OnDestroy {
diff --git a/frontend/src/global_styles/openproject.sass b/frontend/src/global_styles/openproject.sass
index e2bcd889692..c8df969478d 100644
--- a/frontend/src/global_styles/openproject.sass
+++ b/frontend/src/global_styles/openproject.sass
@@ -21,6 +21,7 @@
@import "../../../modules/meeting/app/components/_index.sass"
@import "../../../modules/overviews/app/components/_index.sass"
@import "../../../modules/storages/app/components/_index.sass"
+@import "../app/shared/components/fields/edit/field-types/progress-popover-edit-field.component.sass"
// Component specific Styles
@import "../../../app/components/_index.sass"