Missing download button at narrow viewports in repository directory view

Summary

Missing download button in repository directory view at narrow viewports.

Steps to reproduce

  1. Go to https://gitlab.com/gitlab-org/gitlab/-/tree/master at narrow viewport

Example Project

What is the current bug behavior?

Download button not appearing so there is a gap

What is the expected correct behavior?

Button should be visible like the project overview page

Relevant logs and/or screenshots

Good - project overview Bug - repo directory
image image

Possible fixes

The relevant haml files are:

  • app/views/projects/buttons/_download.html.haml
  • app/views/projects/tree/_tree_header.html.haml

Note that this tree header partial is shared by the project homepage, where the download button partial does work as expected