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

fixed stem styling

Jonas Jabari65e0211802ae
diff --git a/app/components/work_packages/activities_tab/journals/item_component/details.rb b/app/components/work_packages/activities_tab/journals/item_component/details.rb
index 1771f8d2a57..4fd23af862b 100644
--- a/app/components/work_packages/activities_tab/journals/item_component/details.rb
+++ b/app/components/work_packages/activities_tab/journals/item_component/details.rb
@@ -226,7 +226,11 @@ module WorkPackages
end
def render_detail_description(container, detail)
- container.with_column(pl: 1, font_size: :small) do
+ container.with_column(
+ pl: 1,
+ font_size: :small,
+ classes: "work-packages-activities-tab-journals-item-component-details--journal-detail-description-container"
+ ) do
render(Primer::Beta::Text.new(
classes: "work-packages-activities-tab-journals-item-component-details--journal-detail-description",
data: { "test-selector": "op-journal-detail-description" }
diff --git a/app/components/work_packages/activities_tab/journals/item_component/details.sass b/app/components/work_packages/activities_tab/journals/item_component/details.sass
index d2863424716..e43800f3fae 100644
--- a/app/components/work_packages/activities_tab/journals/item_component/details.sass
+++ b/app/components/work_packages/activities_tab/journals/item_component/details.sass
@@ -44,4 +44,6 @@
&--notification-dot-icon
color: var(--bgColor-accent-emphasis)
&--activity-link-container
- padding-top: 2px
\ No newline at end of file
+ padding-top: 2px
+ &--journal-detail-description-container
+ max-width: 95% // otherwise the stem branch might get too short for long descriptions
\ No newline at end of file