Commit 8b134e7d authored by Annabel Dunstone Gray's avatar Annabel Dunstone Gray

Dynamically truncate branch name on larger viewports

parent e01456fd
...@@ -37,10 +37,6 @@ ...@@ -37,10 +37,6 @@
padding-top: 7px; padding-top: 7px;
padding-bottom: 7px; padding-bottom: 7px;
display: flex; display: flex;
.float-right {
height: 20px;
}
} }
.editor-ref { .editor-ref {
...@@ -50,7 +46,6 @@ ...@@ -50,7 +46,6 @@
display: block; display: block;
float: left; float: left;
margin-right: 10px; margin-right: 10px;
flex: 1;
} }
.editor-file-name { .editor-file-name {
...@@ -71,7 +66,9 @@ ...@@ -71,7 +66,9 @@
} }
.file-buttons { .file-buttons {
font-size: 0; display: flex;
flex: 1;
justify-content: flex-end;
} }
.select2 { .select2 {
...@@ -113,10 +110,6 @@ ...@@ -113,10 +110,6 @@
.file-editor { .file-editor {
.file-title { .file-title {
display: block; display: block;
.float-right {
height: auto;
}
} }
.new-file-name { .new-file-name {
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
.editor-ref.block-truncated .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')
......
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