Commit daca5cab authored by Annabel Gray's avatar Annabel Gray

Merge branch...

Merge branch 'ee-47752-buttons-on-new-file-page-wrap-outside-of-container-for-long-branch-names' into 'master'

Resolve "Buttons on new file page wrap outside of container for long branch names" - EE

See merge request gitlab-org/gitlab-ee!6811
parents 0cd4f41c 771711a3
...@@ -36,10 +36,7 @@ ...@@ -36,10 +36,7 @@
line-height: 35px; line-height: 35px;
padding-top: 7px; padding-top: 7px;
padding-bottom: 7px; padding-bottom: 7px;
display: flex;
.float-right {
height: 20px;
}
} }
.editor-ref { .editor-ref {
...@@ -60,20 +57,18 @@ ...@@ -60,20 +57,18 @@
.new-file-name { .new-file-name {
display: inline-block; display: inline-block;
max-width: 450px; max-width: 420px;
float: left; float: left;
@media(max-width: map-get($grid-breakpoints, lg)-1) { @media(max-width: map-get($grid-breakpoints, lg)-1) {
width: 280px;
}
@media(max-width: map-get($grid-breakpoints, md)-1) {
width: 180px; width: 180px;
} }
} }
.file-buttons { .file-buttons {
font-size: 0; display: flex;
flex: 1;
justify-content: flex-end;
} }
.select2 { .select2 {
...@@ -110,12 +105,11 @@ ...@@ -110,12 +105,11 @@
} }
} }
@include media-breakpoint-down(xs) {
@include media-breakpoint-down(sm) {
.file-editor { .file-editor {
.file-title { .file-title {
.float-right { display: block;
height: auto;
}
} }
.new-file-name { .new-file-name {
...@@ -143,6 +137,10 @@ ...@@ -143,6 +137,10 @@
} }
} }
} }
.editor-ref {
max-width: 250px;
}
} }
} }
...@@ -205,7 +203,6 @@ ...@@ -205,7 +203,6 @@
.template-type-selector { .template-type-selector {
display: inline-block; display: inline-block;
vertical-align: top; vertical-align: top;
font-family: $regular-font;
margin-top: -5px; margin-top: -5px;
@media(max-width: map-get($grid-breakpoints, md)-1) { @media(max-width: map-get($grid-breakpoints, md)-1) {
......
...@@ -2,13 +2,12 @@ ...@@ -2,13 +2,12 @@
.file-holder-bottom-radius.file-holder.file.append-bottom-default .file-holder-bottom-radius.file-holder.file.append-bottom-default
.js-file-title.file-title.clearfix{ data: { current_action: action } } .js-file-title.file-title.clearfix{ data: { current_action: action } }
.editor-ref .editor-ref.block-truncated
= sprite_icon('fork', size: 12) = sprite_icon('fork', size: 12)
= ref = ref
%span.editor-file-name - if current_action?(:edit) || current_action?(:update)
- if current_action?(:edit) || current_action?(:update) = text_field_tag 'file_path', (params[:file_path] || @path),
= text_field_tag 'file_path', (params[:file_path] || @path), class: 'form-control new-file-path js-file-path-name-input'
class: 'form-control new-file-path js-file-path-name-input'
- if current_action?(:new) || current_action?(:create) - if current_action?(:new) || current_action?(:create)
%span.editor-file-name %span.editor-file-name
...@@ -16,7 +15,7 @@ ...@@ -16,7 +15,7 @@
= text_field_tag 'file_name', params[:file_name], placeholder: "File name", = text_field_tag 'file_name', params[:file_name], placeholder: "File name",
required: true, class: 'form-control new-file-name js-file-path-name-input' required: true, class: 'form-control new-file-name js-file-path-name-input'
.float-right.file-buttons .file-buttons
= button_tag class: 'soft-wrap-toggle btn', type: 'button', tabindex: '-1' do = button_tag class: 'soft-wrap-toggle btn', type: 'button', tabindex: '-1' do
%span.no-wrap %span.no-wrap
= custom_icon('icon_no_wrap') = custom_icon('icon_no_wrap')
......
---
title: Fix buttons on the new file page wrapping outside of the container
merge_request: 21015
author:
type: fixed
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