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

Improve some styles

Benjamin Bädorf1a3fc3caaf15
diff --git a/frontend/src/app/features/user-preferences/notifications-settings/page/notifications-settings-page.component.html b/frontend/src/app/features/user-preferences/notifications-settings/page/notifications-settings-page.component.html
index 94340cdc8f3..d83bc26f938 100644
--- a/frontend/src/app/features/user-preferences/notifications-settings/page/notifications-settings-page.component.html
+++ b/frontend/src/app/features/user-preferences/notifications-settings/page/notifications-settings-page.component.html
@@ -2,6 +2,7 @@
<form
[formGroup]="form"
(ngSubmit)="saveChanges()"
+ class="op-form"
>
<h5>{{ text.notifyImmediately.title }}</h5>
<p>{{ text.notifyImmediately.description }}</p>
diff --git a/frontend/src/app/shared/components/forms/checkbox-field/checkbox-field.sass b/frontend/src/app/shared/components/forms/checkbox-field/checkbox-field.sass
index 2a8bf83de70..cd9ee9020d4 100644
--- a/frontend/src/app/shared/components/forms/checkbox-field/checkbox-field.sass
+++ b/frontend/src/app/shared/components/forms/checkbox-field/checkbox-field.sass
@@ -9,8 +9,9 @@
grid-column-end: 2
grid-row-start: 1
grid-row-end: 3
+ align-self: center
padding-right: 1rem
- padding-top: 0.2rem
+ margin-bottom: 0
&--label
grid-column-start: 2
@@ -31,9 +32,3 @@
white-space: pre-line
word-break: break-word
word-wrap: break-word
-
- &--input + &--description
- // This is a hacky way to get the description labels to display more centered
- // next to the inputs When there is no label.
- margin-top: -0.05rem
-
diff --git a/frontend/src/app/shared/components/forms/form-field/form-field.sass b/frontend/src/app/shared/components/forms/form-field/form-field.sass
index 50f178df615..9bfc67d5812 100644
--- a/frontend/src/app/shared/components/forms/form-field/form-field.sass
+++ b/frontend/src/app/shared/components/forms/form-field/form-field.sass
@@ -34,6 +34,9 @@
&--help-text
font-size: 12px
+ &--description *:last-child
+ margin-bottom: 0
+
&--errors
display: flex
flex-direction: column
diff --git a/frontend/src/app/shared/components/forms/form.sass b/frontend/src/app/shared/components/forms/form.sass
index 0af7cd0c372..29efe3f7ddf 100644
--- a/frontend/src/app/shared/components/forms/form.sass
+++ b/frontend/src/app/shared/components/forms/form.sass
@@ -17,6 +17,7 @@
> .op-form--fieldset,
> .op-form--field,
> .op-form-field,
+ > .op-checkbox-field,
> .op-option-list,
> .op-highlighted-input,
> .button