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

merge datepicker mobile style sheet to its main modal date-picker stylesheet

bsatarnejad772c2893d08e
diff --git a/frontend/src/app/shared/components/datepicker/basic-range-date-picker/basic-range-date-picker.component.ts b/frontend/src/app/shared/components/datepicker/basic-range-date-picker/basic-range-date-picker.component.ts
index 568323671ea..d6066167f11 100644
--- a/frontend/src/app/shared/components/datepicker/basic-range-date-picker/basic-range-date-picker.component.ts
+++ b/frontend/src/app/shared/components/datepicker/basic-range-date-picker/basic-range-date-picker.component.ts
@@ -64,7 +64,6 @@ export const opBasicRangeDatePickerSelector = 'op-basic-range-date-picker';
templateUrl: './basic-range-date-picker.component.html',
styleUrls: [
'../styles/datepicker.modal.sass',
- '../styles/datepicker_mobile.modal.sass',
'./basic-range-date-picker.component.sass',
],
changeDetection: ChangeDetectionStrategy.OnPush,
diff --git a/frontend/src/app/shared/components/datepicker/basic-single-date-picker/basic-single-date-picker.component.ts b/frontend/src/app/shared/components/datepicker/basic-single-date-picker/basic-single-date-picker.component.ts
index acbe96a0a09..01bf1461090 100644
--- a/frontend/src/app/shared/components/datepicker/basic-single-date-picker/basic-single-date-picker.component.ts
+++ b/frontend/src/app/shared/components/datepicker/basic-single-date-picker/basic-single-date-picker.component.ts
@@ -62,7 +62,7 @@ export const opBasicSingleDatePickerSelector = 'op-basic-single-date-picker';
@Component({
selector: opBasicSingleDatePickerSelector,
templateUrl: './basic-single-date-picker.component.html',
- styleUrls: ['../styles/datepicker.modal.sass', '../styles/datepicker_mobile.modal.sass'],
+ styleUrls: ['../styles/datepicker.modal.sass'],
changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation.None,
providers: [
diff --git a/frontend/src/app/shared/components/datepicker/modal-single-date-picker/modal-single-date-picker.component.ts b/frontend/src/app/shared/components/datepicker/modal-single-date-picker/modal-single-date-picker.component.ts
index 2c31178b442..dc41e8188f3 100644
--- a/frontend/src/app/shared/components/datepicker/modal-single-date-picker/modal-single-date-picker.component.ts
+++ b/frontend/src/app/shared/components/datepicker/modal-single-date-picker/modal-single-date-picker.component.ts
@@ -64,7 +64,7 @@ export const opModalSingleDatePickerSelector = 'op-modal-single-date-picker';
@Component({
selector: opModalSingleDatePickerSelector,
templateUrl: './modal-single-date-picker.component.html',
- styleUrls: ['../styles/datepicker.modal.sass', '../styles/datepicker_mobile.modal.sass'],
+ styleUrls: ['../styles/datepicker.modal.sass'],
changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation.None,
providers: [
diff --git a/frontend/src/app/shared/components/datepicker/multi-date-picker/multi-date-picker.component.ts b/frontend/src/app/shared/components/datepicker/multi-date-picker/multi-date-picker.component.ts
index 812e16ec2a5..e09133fc642 100644
--- a/frontend/src/app/shared/components/datepicker/multi-date-picker/multi-date-picker.component.ts
+++ b/frontend/src/app/shared/components/datepicker/multi-date-picker/multi-date-picker.component.ts
@@ -83,7 +83,7 @@ import { SpotDropModalTeleportationService } from 'core-app/spot/components/drop
@Component({
selector: 'op-multi-date-picker',
templateUrl: './multi-date-picker.component.html',
- styleUrls: ['../styles/datepicker.modal.sass', '../styles/datepicker_mobile.modal.sass'],
+ styleUrls: ['../styles/datepicker.modal.sass'],
changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation.None,
providers: [
diff --git a/frontend/src/app/shared/components/datepicker/single-date-picker/single-date-picker.component.ts b/frontend/src/app/shared/components/datepicker/single-date-picker/single-date-picker.component.ts
index f5b4e3d5965..f9aac9b632b 100644
--- a/frontend/src/app/shared/components/datepicker/single-date-picker/single-date-picker.component.ts
+++ b/frontend/src/app/shared/components/datepicker/single-date-picker/single-date-picker.component.ts
@@ -64,7 +64,7 @@ export const opSingleDatePickerSelector = 'op-single-date-picker';
@Component({
selector: opSingleDatePickerSelector,
templateUrl: './single-date-picker.component.html',
- styleUrls: ['../styles/datepicker.modal.sass', '../styles/datepicker_mobile.modal.sass'],
+ styleUrls: ['../styles/datepicker.modal.sass'],
changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation.None,
providers: [
diff --git a/frontend/src/app/shared/components/datepicker/styles/datepicker.modal.sass b/frontend/src/app/shared/components/datepicker/styles/datepicker.modal.sass
index 17242a5e8d7..a74ca5761ee 100644
--- a/frontend/src/app/shared/components/datepicker/styles/datepicker.modal.sass
+++ b/frontend/src/app/shared/components/datepicker/styles/datepicker.modal.sass
@@ -59,3 +59,24 @@
// nested spot-container styles
&.spot-container
margin-top: $spot-spacing-0_5
+
+@media screen and (max-width: 679px)
+ .op-datepicker-modal
+ // Use same width as spot-modal mobile
+ width: calc(100vw - 2rem)
+ margin-bottom: 0
+
+ &--flatpickr-instance
+ align-self: center
+
+ &--dates-container
+ grid-template-columns: 1fr 1fr
+
+ &--toggle-actions-container
+ display: grid
+ grid-template-columns: 1fr
+ grid-row-gap: $spot-spacing-1
+
+ &--date-form
+ &:only-child
+ grid-column: 1 / 3
\ No newline at end of file
diff --git a/frontend/src/app/shared/components/datepicker/styles/datepicker_mobile.modal.sass b/frontend/src/app/shared/components/datepicker/styles/datepicker_mobile.modal.sass
deleted file mode 100644
index 4945b8d0a67..00000000000
--- a/frontend/src/app/shared/components/datepicker/styles/datepicker_mobile.modal.sass
+++ /dev/null
@@ -1,22 +0,0 @@
-@import '../../app/spot/styles/sass/variables'
-
-@media screen and (max-width: 679px)
- .op-datepicker-modal
- // Use same width as spot-modal mobile
- width: calc(100vw - 2rem)
- margin-bottom: 0
-
- &--flatpickr-instance
- align-self: center
-
- &--dates-container
- grid-template-columns: 1fr 1fr
-
- &--toggle-actions-container
- display: grid
- grid-template-columns: 1fr
- grid-row-gap: $spot-spacing-1
-
- &--date-form
- &:only-child
- grid-column: 1 / 3
diff --git a/frontend/src/app/shared/components/datepicker/wp-multi-date-form/wp-multi-date-form.component.ts b/frontend/src/app/shared/components/datepicker/wp-multi-date-form/wp-multi-date-form.component.ts
index 48bd9812144..3fe7b354801 100644
--- a/frontend/src/app/shared/components/datepicker/wp-multi-date-form/wp-multi-date-form.component.ts
+++ b/frontend/src/app/shared/components/datepicker/wp-multi-date-form/wp-multi-date-form.component.ts
@@ -102,8 +102,7 @@ export type FieldUpdates =
selector: 'op-wp-multi-date-form',
templateUrl: './wp-multi-date-form.component.html',
styleUrls: [
- '../styles/datepicker.modal.sass',
- '../styles/datepicker_mobile.modal.sass',
+ '../styles/datepicker.modal.sass'
],
changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation.None,
diff --git a/frontend/src/app/shared/components/datepicker/wp-single-date-form/wp-single-date-form.component.ts b/frontend/src/app/shared/components/datepicker/wp-single-date-form/wp-single-date-form.component.ts
index 28a802fe1b1..cccfe8e92de 100644
--- a/frontend/src/app/shared/components/datepicker/wp-single-date-form/wp-single-date-form.component.ts
+++ b/frontend/src/app/shared/components/datepicker/wp-single-date-form/wp-single-date-form.component.ts
@@ -75,7 +75,6 @@ import { DateModalSchedulingService } from '../services/date-modal-scheduling.se
styleUrls: [
'./wp-single-date-form.component.sass',
'../styles/datepicker.modal.sass',
- '../styles/datepicker_mobile.modal.sass',
],
changeDetection: ChangeDetectionStrategy.OnPush,
encapsulation: ViewEncapsulation.None,