From 73e5168db653e47f176c27a20d6a27ee4725419d Mon Sep 17 00:00:00 2001 From: Urban Rotnik Date: Fri, 24 Apr 2020 14:43:08 +0200 Subject: [PATCH] Fix icon position and hover efect in repositories sidebar --- app/assets/stylesheets/partials/_tree_view.scss | 4 ++-- app/views/repositories/_sidebar.html.erb | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/app/assets/stylesheets/partials/_tree_view.scss b/app/assets/stylesheets/partials/_tree_view.scss index 1fb5581dc..d3117037c 100644 --- a/app/assets/stylesheets/partials/_tree_view.scss +++ b/app/assets/stylesheets/partials/_tree_view.scss @@ -123,8 +123,8 @@ .fas-custom { float: right; - margin-right: 5px; - top: 2px; + margin-right: 15px; + top: 17px; } .active { diff --git a/app/views/repositories/_sidebar.html.erb b/app/views/repositories/_sidebar.html.erb index 623ce0a7a..e9abdb98a 100644 --- a/app/views/repositories/_sidebar.html.erb +++ b/app/views/repositories/_sidebar.html.erb @@ -16,11 +16,12 @@ <% repositories.each do |repository| %>
  • - <%= link_to repository.name, - repository_path(repository), + <%= link_to repository_path(repository), class: current_page?(repository_path(repository)) ? 'disabled line-wrap' : 'line-wrap', - data: { 'no-turbolink' => 'true', type: 'repository', id: repository.id } %> - <%= inventory_shared_status_icon(repository, current_team) %> + data: { 'no-turbolink' => 'true', type: 'repository', id: repository.id } do %> + <%= repository.name %> + <%= inventory_shared_status_icon(repository, current_team) %> + <% end %>
  • <% end %>