Skip to content

Commit

Permalink
Lighter counter of workflow_run type in filters
Browse files Browse the repository at this point in the history
  • Loading branch information
ncounter committed Jul 28, 2023
1 parent 6b42423 commit d142c45
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Expand Up @@ -5,4 +5,4 @@
%i.me-1{ class: "#{@icon} #{css_for_icon}" }
= @text
- if @amount.positive?
%span.badge.align-text-top.ms-2{ class: css_for_badge_color }>= @amount
%span= @amount
4 changes: 0 additions & 4 deletions src/api/app/components/workflow_run_filter_link_component.rb
Expand Up @@ -14,10 +14,6 @@ def css_for_link
workflow_run_filter_matches? ? 'active' : ''
end

def css_for_badge_color
workflow_run_filter_matches? ? 'text-bg-light' : 'text-bg-primary'
end

def css_for_icon
workflow_run_filter_matches? ? 'text-light' : ''
end
Expand Down

0 comments on commit d142c45

Please sign in to comment.