Skip to content

Commit 564359d

Browse files
myabcEinLama
authored andcommitted
[#73462] Vertically center Backlogs Inbox counter
Also increases space between "Backlog" text and counter to 8px. https://community.openproject.org/wp/73462
1 parent b314bf5 commit 564359d

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

modules/backlogs/app/components/backlogs/inbox_component.html.erb

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,16 @@ See COPYRIGHT and LICENSE files for more details.
2929
<%= component_wrapper(tag: "turbo-frame", refresh: :morph) do %>
3030
<%=
3131
render(Primer::Beta::Subhead.new(hide_border: true)) do |head|
32-
head.with_heading(tag: :h3, font_weight: :bold, size: :medium) do
32+
head.with_heading(
33+
tag: :h3,
34+
size: :medium,
35+
font_weight: :bold,
36+
display: :inline_flex,
37+
align_items: :center,
38+
classes: "gap-2"
39+
) do
3340
concat t(:label_backlog)
34-
concat render(Primer::Beta::Counter.new(count: total, scheme: :default, ml: 1))
41+
concat render(Primer::Beta::Counter.new(count: total, scheme: :default))
3542
end
3643

3744
if allow_sprint_creation?(project)

modules/backlogs/app/views/rb_master_backlogs/_sprint_planning_list.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ See COPYRIGHT and LICENSE files for more details.
3939
<div id="sprint_backlogs_container" class="op-sprint-planning-lists">
4040
<%=
4141
render(Primer::Beta::Subhead.new(hide_border: true)) do |head|
42-
head.with_heading(tag: :h3, font_weight: :bold, size: :medium) { Agile::Sprint.human_model_name.pluralize }
42+
head.with_heading(tag: :h3, size: :medium, font_weight: :bold) { Agile::Sprint.human_model_name.pluralize }
4343

4444
if allow_sprint_creation?(@project)
4545
head.with_actions do

0 commit comments

Comments
 (0)