Merge branch '23962-docker-file-dropdown-should-be-properly-positioned' into 'master'

Fixed file template dropdown for the "New File" editor for smaller/zoomed screens

## What does this MR do?

Fixes the dropdown issue on zoomed/smaller screens

## Are there points in the code the reviewer needs to double check?

Until what point do we consider not supporting a certain screen size / zoom level

## Why was this MR needed?

To fix the dropdown position when zooming in on the screen

## Screenshots (if relevant)

Zoom levels

**100% Zoom**
![100_](/uploads/b13c6c48d4ca99b119d45975280cd16f/100_.png)

**175% Zoom**
![175_](/uploads/ef25dffbf85d0859bc57c875914ffc7a/175_.png)

**200% Zoom**
![200_](/uploads/6ff7709f42304d51ef29a173efa5540d/200_.png)

**300% Zoom**
![300_](/uploads/7e57528582a09355354bbbfc26aa64a4/300_.png)

## Does this MR meet the acceptance criteria?

- [X] [Changelog entry](https://docs.gitlab.com/ce/development/changelog.html) added
- [ ] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md)
- [ ] API support added
- Tests
  - [ ] Added for this feature/bug
  - [X] All builds are passing
- [X] Conform by the [merge request performance guides](http://docs.gitlab.com/ce/development/merge_request_performance_guidelines.html)
- [X] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides)
- [X] Branch has no merge conflicts with `master` (if it does - rebase it please)
- [X] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits)

## What are the relevant issue numbers?

Closes #23962 

## Affected pages for the modified css-classes

`./app/assets/stylesheets/pages/editor.scss:  .gitignore-selector,
./app/assets/stylesheets/pages/editor.scss:  .license-selector,
./app/assets/stylesheets/pages/editor.scss:  .gitlab-ci-yml-selector {
./app/views/projects/blob/_editor.html.haml:      .gitlab-ci-yml-selector.js-gitlab-ci-yml-selector-wrap.hidden
./app/assets/stylesheets/pages/editor.scss:  .new-file-name {
./app/views/projects/blob/_editor.html.haml:        required: true, class: 'form-control new-file-name' `

See merge request !7807
This commit is contained in:
Annabel Dunstone Gray 2016-12-15 16:21:04 +00:00
commit a84c6b1abc
2 changed files with 52 additions and 1 deletions

View file

@ -51,8 +51,16 @@
.new-file-name { .new-file-name {
display: inline-block; display: inline-block;
width: 450px; max-width: 450px;
float: left; float: left;
@media(max-width: $screen-md-max) {
width: 280px;
}
@media(max-width: $screen-sm-max) {
width: 180px;
}
} }
.file-buttons { .file-buttons {
@ -114,3 +122,42 @@
} }
} }
} }
@media(max-width: $screen-xs-max){
.file-editor {
.file-title {
.pull-right {
height: auto;
}
}
.new-file-name {
max-width: none;
width: 100%;
margin-bottom: 3px;
}
.file-buttons {
display: block;
width: 100%;
margin-bottom: 10px;
.soft-wrap-toggle {
width: 100%;
margin: 3px 0;
}
.encoding-selector,
.license-selector,
.gitignore-selector,
.gitlab-ci-yml-selector {
display: block;
margin: 3px 0;
button {
width: 100%;
}
}
}
}
}

View file

@ -0,0 +1,4 @@
---
title: Fixed file template dropdown for the "New File" editor for smaller/zoomed screens
merge_request:
author: