Commit ba39ca9f authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix project name overflow on dashboard

parent e7e329d3
...@@ -28,6 +28,10 @@ ...@@ -28,6 +28,10 @@
font-size: 14px; font-size: 14px;
line-height: 24px; line-height: 24px;
.str-truncated {
max-width: 75%;
}
a { a {
display: block; display: block;
padding: 8px 15px; padding: 8px 15px;
...@@ -87,16 +91,3 @@ ...@@ -87,16 +91,3 @@
margin-right: 5px; margin-right: 5px;
width: 16px; width: 16px;
} }
.dash-new-project {
background: $gl-success;
border: 1px solid $gl-success;
a {
color: #FFF;
}
}
.dash-list .str-truncated {
max-width: 72%;
}
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
.input-group .input-group
= search_field_tag :filter_projects, nil, placeholder: 'Filter by name', class: 'projects-list-filter form-control' = search_field_tag :filter_projects, nil, placeholder: 'Filter by name', class: 'projects-list-filter form-control'
- if current_user.can_create_project? - if current_user.can_create_project?
.input-group-addon.dash-new-project %span.input-group-btn
= link_to new_project_path do = link_to new_project_path, class: 'btn btn-success' do
%strong New project New project
= render 'shared/projects_list', projects: @projects, projects_limit: 20 = render 'shared/projects_list', projects: @projects, projects_limit: 20
...@@ -8,9 +8,9 @@ ...@@ -8,9 +8,9 @@
.input-group .input-group
= search_field_tag :filter_projects, nil, placeholder: 'Filter by name', class: 'projects-list-filter form-control' = search_field_tag :filter_projects, nil, placeholder: 'Filter by name', class: 'projects-list-filter form-control'
- if current_user.can_create_project? - if current_user.can_create_project?
.input-group-addon.dash-new-project %span.input-group-btn
= link_to new_project_path do = link_to new_project_path, class: 'btn btn-success' do
%strong New project New project
= render 'shared/projects_list', projects: @projects, = render 'shared/projects_list', projects: @projects,
projects_limit: 20, stars: true, avatar: false projects_limit: 20, stars: true, avatar: false
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
.input-group .input-group
= search_field_tag :filter_projects, nil, placeholder: 'Filter by name', class: 'projects-list-filter form-control' = search_field_tag :filter_projects, nil, placeholder: 'Filter by name', class: 'projects-list-filter form-control'
- if can? current_user, :create_projects, @group - if can? current_user, :create_projects, @group
.input-group-addon.dash-new-project %span.input-group-btn
= link_to new_project_path(namespace_id: @group.id) do = link_to new_project_path(namespace_id: @group.id), class: 'btn btn-success' do
%strong New project New project
= render 'shared/projects_list', projects: @projects, projects_limit: 20 = render 'shared/projects_list', projects: @projects, projects_limit: 20
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment