Commit 9e631682 authored by Clement Ho's avatar Clement Ho Committed by Jose

Fix change template form

parent 91f31ae5
...@@ -161,6 +161,10 @@ table { ...@@ -161,6 +161,10 @@ table {
} }
} }
.input-group-prepend svg.active {
border: 0 !important;
}
// Polyfill deprecated selectors // Polyfill deprecated selectors
.hidden { .hidden {
......
...@@ -514,12 +514,6 @@ ...@@ -514,12 +514,6 @@
} }
} }
svg {
position: absolute;
left: $gl-padding;
top: $gl-padding;
}
.project-fields-form { .project-fields-form {
display: none; display: none;
...@@ -530,25 +524,18 @@ ...@@ -530,25 +524,18 @@
} }
.template-input-group { .template-input-group {
position: relative; .input-group-prepend {
@include media-breakpoint-up(sm) {
display: flex;
}
.input-group-prepend,
.input-group-append {
flex: 1; flex: 1;
text-align: left;
padding-left: ($gl-padding * 3);
background-color: $white-light;
} }
.selected-template { .input-group-text {
line-height: 20px; width: 100%;
background-color: $white-light;
} }
.selected-icon { .selected-icon {
padding-right: $gl-padding;
svg { svg {
display: none; display: none;
top: 7px; top: 7px;
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
- Gitlab::ProjectTemplate.all.each do |template| - Gitlab::ProjectTemplate.all.each do |template|
= custom_icon(template.logo) = custom_icon(template.logo)
.selected-template .selected-template
.input-group-append
%button.btn.btn-default.change-template{ type: "button" } Change template %button.btn.btn-default.change-template{ type: "button" } Change template
= render 'new_project_fields', f: f, project_name_id: "template-project-name" = render 'new_project_fields', f: f, project_name_id: "template-project-name"
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