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

change the styles to reduce the defualt image size

bsatarnejad1a1da15fb0b8
diff --git a/app/views/common/upsale.html.erb b/app/views/common/upsale.html.erb
index ab6cbeb98dc..5227f81b62a 100644
--- a/app/views/common/upsale.html.erb
+++ b/app/views/common/upsale.html.erb
@@ -22,7 +22,7 @@
<% if feature_video.empty? %>
<% if feature_image.empty? %>
- <%= image_tag "enterprise_edition.png", class: "widget-box--teaser-image" %>
+ <%= image_tag "enterprise_edition.png", class: "widget-box--teaser-image_default" %>
<% else %>
<%= image_tag feature_image, class: "widget-box--teaser-image" %>
<% end %>
diff --git a/frontend/src/global_styles/content/_enterprise.sass b/frontend/src/global_styles/content/_enterprise.sass
index 8c900e82998..9676fecb47c 100644
--- a/frontend/src/global_styles/content/_enterprise.sass
+++ b/frontend/src/global_styles/content/_enterprise.sass
@@ -1,21 +1,28 @@
@import '../../app/spot/styles/sass/variables'
.upsale-notification
- max-width: 900px
+ max-width: 800px
margin: auto
padding-top: 20px
text-align: center
+
.widget-box--teaser-image
width: 100%
- max-height: 500px
- padding: 20px
+ height: 40vh
+ margin-bottom: 20px
+ border: 1px solid $spot-color-main-dark
+ border-radius: 20px
+
+ .widget-box--teaser-image_default
+ width: 30%
margin-bottom: 20px
border: 1px solid $spot-color-main-dark
border-radius: 20px
.widget-box--teaser-video
width: 100%
+ height: 40vh
margin-bottom: 20px
border: 1px solid $spot-color-main-dark
border-radius: 20px