Skip to content

Commit

Permalink
Merge pull request #230 from wearepal/bugfix
Browse files Browse the repository at this point in the history
Resolve - searching projects doesn't change the length of the list of projects
  • Loading branch information
paulthatjazz authored Dec 18, 2023
2 parents c572f94 + ce5d012 commit c4aa930
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/projects/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
<div class="list-group-item list-group-item-light">
<input placeholder="Search" class="form-control" data-action="input->filter#update" autofocus>
</div>
<% @team.projects.sort_by(&:name).each do |project| %>
<div class="list-group-item p-0 d-flex align-items-center">
<%= link_to project_path(project), class: "list-group-item list-group-item-action border-0", data: { "filter-target": "item" } do %>
<% @team.projects.sort_by { |project| project.name.downcase }.each do |project| %>
<div class="list-group-item list-group-item-action p-0 align-items-center" data-filter-target="item" style="display: flex;">
<%= link_to project_path(project), class: "list-group-item list-group-item-action border-0" do %>
<div class="d-flex align-items-center justify-content-between">
<%= project.name %>
<i class="fas fa-chevron-right"></i>
Expand Down

0 comments on commit c4aa930

Please sign in to comment.