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

Scroll include project list on overflow

Benjamin Bädorf894b93933b0b
diff --git a/frontend/src/app/shared/components/project-include/project-include.component.html b/frontend/src/app/shared/components/project-include/project-include.component.html
index 9bbaa62178a..6e621123457 100644
--- a/frontend/src/app/shared/components/project-include/project-include.component.html
+++ b/frontend/src/app/shared/components/project-include/project-include.component.html
@@ -29,7 +29,7 @@
</div>
<form
(submit)="onSubmit($event)"
- class="spot-body"
+ class="spot-body op-project-include--body"
>
<spot-text-field
[placeholder]="text.search_placeholder"
@@ -45,6 +45,7 @@
</spot-text-field>
<ul
+ class="op-project-include--list"
op-project-list
[projects]="projects$ | async"
[selected]="selectedProjects"
diff --git a/frontend/src/app/shared/components/project-include/project-include.component.sass b/frontend/src/app/shared/components/project-include/project-include.component.sass
index 8b2f4495c3f..ed94fb08b89 100644
--- a/frontend/src/app/shared/components/project-include/project-include.component.sass
+++ b/frontend/src/app/shared/components/project-include/project-include.component.sass
@@ -1,8 +1,9 @@
@import '../../../spot/styles/sass/variables'
\::ng-deep .spot-drop-modal--body
- width: 460px
- max-width: 100vw
+
+ @media screen and #{$spot-mq-drop-modal-in-context}
+ width: 460px
.op-project-include
&--header
@@ -15,3 +16,14 @@
margin: 0
padding: 0
@include spot-subheader-big
+
+ &--body
+ flex-shrink: 1
+ flex-basis: 100%
+ overflow: hidden
+
+ &--list
+ overflow-y: auto
+ flex-shrink: 1
+ flex-basis: 100%
+
diff --git a/frontend/src/app/spot/styles/sass/components/drop-modal.sass b/frontend/src/app/spot/styles/sass/components/drop-modal.sass
index 0172fb58b57..77b68ac3d80 100644
--- a/frontend/src/app/spot/styles/sass/components/drop-modal.sass
+++ b/frontend/src/app/spot/styles/sass/components/drop-modal.sass
@@ -20,6 +20,9 @@
background: $spot-color-basic-white
border-radius: 5px
+ display: flex
+ flex-direction: column
+
@media #{$spot-mq-landscape}
bottom: $spot-spacing-1
right: $spot-spacing-3_5
diff --git a/frontend/src/app/spot/styles/tokens/media-queries.yml b/frontend/src/app/spot/styles/tokens/media-queries.yml
index 8ad4d717aa5..4924d09a4b2 100644
--- a/frontend/src/app/spot/styles/tokens/media-queries.yml
+++ b/frontend/src/app/spot/styles/tokens/media-queries.yml
@@ -3,7 +3,7 @@ props:
value: "'(orientation: landscape)'"
spot-mq-drop-modal-in-context:
- value: "'(min-width: 680px) and (min-height: 500px)'"
+ value: "'(min-width: 1000px) and (min-height: 500px)'"
global:
type: media-query