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

[#58773] Activity tab emoji line overflow behaviour can introduce horizontal scroll

Kabiru Mwenja0fa29ccf03f6
diff --git a/app/components/work_packages/activities_tab/journals/item_component/reactions.html.erb b/app/components/work_packages/activities_tab/journals/item_component/reactions.html.erb
index f627e6e1153..f40c99678dd 100644
--- a/app/components/work_packages/activities_tab/journals/item_component/reactions.html.erb
+++ b/app/components/work_packages/activities_tab/journals/item_component/reactions.html.erb
@@ -1,7 +1,7 @@
<%=
component_wrapper do
if grouped_emoji_reactions.present?
- flex_layout(test_selector: "emoji-reactions") do |reactions_container|
+ flex_layout(test_selector: "emoji-reactions", flex_wrap: :wrap, classes: "op-emoji-reactions--gap") do |reactions_container|
grouped_emoji_reactions.each do |reaction, data|
reactions_container.with_column(mr: 2) do
render(Primer::Beta::Button.new(
@@ -12,10 +12,10 @@
test_selector: "reaction-#{reaction}",
tag: :a,
href: href(reaction:),
- data: {
- turbo_stream: true,
+ data: {
+ turbo_stream: true,
turbo_method: :put,
- "work-packages--activities-tab--index-target": "reactionButton",
+ "work-packages--activities-tab--index-target": "reactionButton"
},
aria: { label: aria_label_text(reaction, data[:users]) },
disabled: current_user_cannot_react?,
diff --git a/app/components/work_packages/activities_tab/journals/item_component/reactions.sass b/app/components/work_packages/activities_tab/journals/item_component/reactions.sass
index e0583044c2a..6947b7b5601 100644
--- a/app/components/work_packages/activities_tab/journals/item_component/reactions.sass
+++ b/app/components/work_packages/activities_tab/journals/item_component/reactions.sass
@@ -1,3 +1,6 @@
+.op-emoji-reactions--gap
+ row-gap: var(--base-size-4, 4px)
+
.op-reactions-button:disabled
cursor: default
background-color: transparent