diff --git a/app/assets/stylesheets/pages/editor.scss b/app/assets/stylesheets/pages/editor.scss index ddd1f8cc98a50a3af9668a3f48e03377bd95eecb..64d5126b7838f650fe65582b23e707429f0bda0d 100644 --- a/app/assets/stylesheets/pages/editor.scss +++ b/app/assets/stylesheets/pages/editor.scss @@ -36,6 +36,7 @@ line-height: 35px; padding-top: 7px; padding-bottom: 7px; + display: flex; .float-right { height: 20px; @@ -49,6 +50,7 @@ display: block; float: left; margin-right: 10px; + flex: 1; } .editor-file-name { @@ -60,14 +62,10 @@ .new-file-name { display: inline-block; - max-width: 450px; + max-width: 420px; float: left; @media(max-width: map-get($grid-breakpoints, lg)-1) { - width: 280px; - } - - @media(max-width: map-get($grid-breakpoints, md)-1) { width: 180px; } } @@ -111,9 +109,11 @@ } -@include media-breakpoint-down(xs) { +@include media-breakpoint-down(sm) { .file-editor { .file-title { + display: block; + .float-right { height: auto; } @@ -144,6 +144,10 @@ } } } + + .editor-ref { + max-width: 250px; + } } } diff --git a/app/views/projects/blob/_editor.html.haml b/app/views/projects/blob/_editor.html.haml index 8560b72fe85b2b8f131d3b18f4a17ddb8ca22289..ec58309055d620c7ba7680aa206cf5d22b34eb88 100644 --- a/app/views/projects/blob/_editor.html.haml +++ b/app/views/projects/blob/_editor.html.haml @@ -2,7 +2,7 @@ .file-holder-bottom-radius.file-holder.file.append-bottom-default .js-file-title.file-title.clearfix{ data: { current_action: action } } - .editor-ref + .editor-ref.block-truncated = sprite_icon('fork', size: 12) = ref %span.editor-file-name diff --git a/changelogs/unreleased/47752-buttons-on-new-file-page-wrap-outside-of-container-for-long-branch-names.yml b/changelogs/unreleased/47752-buttons-on-new-file-page-wrap-outside-of-container-for-long-branch-names.yml new file mode 100644 index 0000000000000000000000000000000000000000..81ca632947d8a15ac32701357cf990be0cd7f4c3 --- /dev/null +++ b/changelogs/unreleased/47752-buttons-on-new-file-page-wrap-outside-of-container-for-long-branch-names.yml @@ -0,0 +1,5 @@ +--- +title: Fix buttons on the new file page wrapping outside of the container +merge_request: 21015 +author: +type: fixed