Commit a3c2b39d authored by Annabel Gray's avatar Annabel Gray

Merge branch...

Merge branch '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"

Closes #47752

See merge request gitlab-org/gitlab-ce!21015
parents 19fdcfd3 8b134e7d
...@@ -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 {
...@@ -111,12 +106,10 @@ ...@@ -111,12 +106,10 @@
} }
@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 {
...@@ -144,6 +137,10 @@ ...@@ -144,6 +137,10 @@
} }
} }
} }
.editor-ref {
max-width: 250px;
}
} }
} }
......
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
.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) %span.editor-file-name
= 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'
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,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