Branch rules dropdown is cut off
Summary
A dropdown to select a branch rule type is cut off, when there are no branch rules and the GlPanel is in the empty state.
Steps to reproduce
- Open Rails console. In your terminal:
rails c
- Enable the feature flag:
Feature.enable(:edit_branch_rules)
- In a project, go to Settings / Repository
- Expand Branch rules section
- Click on Add branch rule
Example Project
What is the current bug behavior?
From a code review:
I did run into one minor thing- when there are no rules on the
Settings > Repository
page, the dropdown is confined to the table so it's quite cut off. See below:
What is the expected correct behavior?
The dropdown should render "above" the GlPanel, so that all the options are available without a scrollbar showing.
Relevant logs and/or screenshots
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:env:info`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true
)(we will only investigate if the tests are passing)