diff --git a/app/assets/stylesheets/access_permissions/project.scss b/app/assets/stylesheets/access_permissions/project.scss new file mode 100644 index 000000000..0f9096a43 --- /dev/null +++ b/app/assets/stylesheets/access_permissions/project.scss @@ -0,0 +1,11 @@ +@import "constants"; + +.project-member-item { + border-bottom: .1rem solid $btn-default-border; + padding: 10px; + margin: 10px 0; + + &:last-child { + border: none; + } +} diff --git a/app/assets/stylesheets/application.scss b/app/assets/stylesheets/application.scss index 0ef24a308..42dd15d1e 100644 --- a/app/assets/stylesheets/application.scss +++ b/app/assets/stylesheets/application.scss @@ -25,6 +25,7 @@ @import "emojionearea.min"; @import "ajax-bootstrap-select.min"; @import "extend/bootstrap"; +@import "access_permissions/*"; @import "extend/*"; @import "hooks/*"; @import "partials/*"; diff --git a/app/views/access_permissions/partials/_project_member_field.html.erb b/app/views/access_permissions/partials/_project_member_field.html.erb index 9b9008da5..2170602fd 100644 --- a/app/views/access_permissions/partials/_project_member_field.html.erb +++ b/app/views/access_permissions/partials/_project_member_field.html.erb @@ -5,13 +5,12 @@ item_id = dom_id(user, :project_member) %> -<%= form_with(model: project_member, url: update_path, method: :put, remote: true, html: { id: item_id, data: { action: 'replace-form autosave-form' } }) do |f| %> +<%= form_with(model: project_member, url: update_path, method: :put, remote: true, html: { class: 'row project-member-item', id: item_id, data: { action: 'replace-form autosave-form' } }) do |f| %> <%= f.hidden_field :user_id, value: f.object.user.id %> -