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

[37251] Allow smaller height modals and fix title for password modal (#9277)

Oliver Günther9f80b16ed42e
diff --git a/frontend/src/app/components/modals/request-for-confirmation/password-confirmation.modal.html b/frontend/src/app/components/modals/request-for-confirmation/password-confirmation.modal.html
index 28a5b172e1a..3cb25184cc5 100644
--- a/frontend/src/app/components/modals/request-for-confirmation/password-confirmation.modal.html
+++ b/frontend/src/app/components/modals/request-for-confirmation/password-confirmation.modal.html
@@ -1,9 +1,11 @@
<form
- class="op-modal confirm-form-submit--modal password-confirm-dialog--modal loading-indicator--location"
+ class="op-modal op-modal_autoheight form -vertical confirm-form-submit--modal password-confirm-dialog--modal loading-indicator--location"
data-indicator-name="modal"
(submit)="confirmAndClose($event)"
>
- <op-modal-header (close)="closeMe($event)">{{text.save_as}}</op-modal-header>
+ <op-modal-header (close)="closeMe($event)">
+ {{text.title}}
+ </op-modal-header>
<div class="op-modal--body request-for-confirmation--form form">
<div class="form--field -required">
diff --git a/frontend/src/app/modules/modal/modal.sass b/frontend/src/app/modules/modal/modal.sass
index c87e5f0f74a..3090d41e025 100644
--- a/frontend/src/app/modules/modal/modal.sass
+++ b/frontend/src/app/modules/modal/modal.sass
@@ -27,6 +27,9 @@
width: 70rem
min-height: 40vh
+ &_autoheight
+ min-height: initial
+
&--header
display: flex
padding: var(--modal-padding) var(--modal-padding) calc(0.5 * var(--modal-padding)) var(--modal-padding)