Commit 05de390fd872b8aae48cd0f53b5edd308a18e51d
1 parent
fd6fc422
Exists in
spb-stable
and in
3 other branches
Style project visibility icons on dashboard
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
3 changed files
with
15 additions
and
3 deletions
Show diff stats
app/assets/stylesheets/sections/dashboard.scss
| ... | ... | @@ -66,7 +66,7 @@ |
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | .project-row, .group-row { |
| 69 | - padding: 10px 15px !important; | |
| 69 | + padding: 10px 12px !important; | |
| 70 | 70 | |
| 71 | 71 | .namespace-name { |
| 72 | 72 | color: #666; |
| ... | ... | @@ -122,3 +122,13 @@ |
| 122 | 122 | color: #BBB; |
| 123 | 123 | } |
| 124 | 124 | } |
| 125 | + | |
| 126 | +.dash-project-access-icon { | |
| 127 | + float: left; | |
| 128 | + margin-right: 10px; | |
| 129 | + font-size: 18px; | |
| 130 | + color: #BBB; | |
| 131 | + margin-bottom: 10px; | |
| 132 | + margin-top: 2px; | |
| 133 | + width: 16px; | |
| 134 | +} | ... | ... |
app/views/dashboard/_project.html.haml
app/views/groups/_projects.html.haml
| ... | ... | @@ -12,7 +12,8 @@ |
| 12 | 12 | - projects.each do |project| |
| 13 | 13 | %li.project-row |
| 14 | 14 | = link_to project_path(project), class: dom_class(project) do |
| 15 | - = visibility_level_icon(project.visibility_level) | |
| 15 | + .dash-project-access-icon | |
| 16 | + = visibility_level_icon(project.visibility_level) | |
| 16 | 17 | %span.project-name |
| 17 | 18 | = truncate(project.name, length: 25) |
| 18 | 19 | %span.arrow | ... | ... |