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

Allow scrolling within op-uc-container e.g for attribute help text in modals

Henriette Darge21dc93331a18
diff --git a/frontend/src/global_styles/content/user-content/_index.sass b/frontend/src/global_styles/content/user-content/_index.sass
index 6d18245bb85..ebfd40d7b6f 100644
--- a/frontend/src/global_styles/content/user-content/_index.sass
+++ b/frontend/src/global_styles/content/user-content/_index.sass
@@ -13,7 +13,9 @@
--op-uc-heading-base: 1.8rem
--op-uc-heading-falloff: 0.85
display: block
- overflow: hidden
+ overflow-x: hidden
+ overflow-y: auto
+ @include styled-scroll-bar
font-size: var(--wiki-default-font-size)
z-index: 0
padding-bottom: 1rem
@@ -28,4 +30,3 @@
&_no-permalinks *:hover .op-uc-link_permalink
display: none
-
diff --git a/modules/documents/app/views/documents/show.html.erb b/modules/documents/app/views/documents/show.html.erb
index 660a3b24faf..0e06645ff81 100644
--- a/modules/documents/app/views/documents/show.html.erb
+++ b/modules/documents/app/views/documents/show.html.erb
@@ -48,9 +48,8 @@ See docs/COPYRIGHT.rdoc for more details.
<% end %>
<% end %>
-<div class="wiki">
+<div class="wiki op-uc-container">
<%= format_text @document.description, attachments: @document.attachments %>
</div>
<%= list_attachments(api_v3_document_resource(@document)) %>
-