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

Ensure fixed height of banner

Oliver Günther200d69804294
diff --git a/app/components/enterprise_edition/banner_component.html.erb b/app/components/enterprise_edition/banner_component.html.erb
index 3d1dc0b6bef..37c77f2f067 100644
--- a/app/components/enterprise_edition/banner_component.html.erb
+++ b/app/components/enterprise_edition/banner_component.html.erb
@@ -49,7 +49,7 @@
if medium?
grid.with_area(:graphic) do
image_tag @image,
- class: "op-enterprise-banner--graphic"
+ class: "op-enterprise-banner--image"
end
end
diff --git a/app/components/enterprise_edition/banner_component.sass b/app/components/enterprise_edition/banner_component.sass
index 0170633f7ce..52935f0df9c 100644
--- a/app/components/enterprise_edition/banner_component.sass
+++ b/app/components/enterprise_edition/banner_component.sass
@@ -28,6 +28,7 @@
/ ++
/
+$op-enterprise-banner-fixed-height: 220px
.op-enterprise-banner
display: grid
@@ -44,6 +45,7 @@
padding: 0
grid-template-areas: "content graphic"
grid-template-columns: 1fr 1fr
+ height: $op-enterprise-banner-fixed-height
&_medium &
padding: 0
@@ -55,7 +57,9 @@
padding: var(--base-size-16)
&--graphic
- min-height: 240px
+ height: $op-enterprise-banner-fixed-height
+
+ &--image
width: 100%
height: 100%
object-fit: cover