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

Autoheight drop modal also on landscape

Benjamin Bädorf553902de9849
diff --git a/frontend/src/app/spot/spot-docs.component.html b/frontend/src/app/spot/spot-docs.component.html
index f89d8997d0b..f8a5e7e68aa 100644
--- a/frontend/src/app/spot/spot-docs.component.html
+++ b/frontend/src/app/spot/spot-docs.component.html
@@ -223,7 +223,7 @@ Currently selected value is {{ toggleValue }}
>Open Modal</button>
<ng-container slot="body">
<div class="spot-body">
- <h1>Test</h1>
+ <h1 class="spot-header-small">Test</h1>
<spot-text-field
placeholder="Placeholder value"
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 47d414eccd1..d813b87c55b 100644
--- a/frontend/src/app/spot/styles/sass/components/drop-modal.sass
+++ b/frontend/src/app/spot/styles/sass/components/drop-modal.sass
@@ -22,10 +22,8 @@
@media #{$spot-mq-landscape}
bottom: $spot-spacing-1
- top: $spot-spacing-1
right: $spot-spacing-3_5
- max-height: unset
- height: calc(100vh - (2 * #{$spot-spacing-1}))
+ max-height: calc(100vh - (2 * #{$spot-spacing-1}))
width: calc(100vw - (#{$spot-spacing-3_5} + #{$spot-spacing-1}))
@media #{$spot-mq-drop-modal-in-context}
@@ -92,12 +90,9 @@
background-color: $spot-color-basic-white
@media #{$spot-mq-landscape}
- bottom: unset
left: unset
right: $spot-spacing-0_75
- width: calc(100% - 2 * $spot-spacing-1)
- top: 50%
- transform: translateY(-50%)
+ transform: none
&_opened &--close-button