Skip to content

Fixes flex property of package tags in smaller screen sizes

Rahul Chanila requested to merge rchanila/fix-package-tags-flex-property into master

What does this MR do and why?

Fixes flex property of package tags in smaller screen sizes introduced in !94050 (merged)

Screenshots or screen recordings

Before After
Screenshot_2023-08-02_at_3.43.06_pm Screenshot_2023-08-02_at_3.53.06_pm

How to set up and validate locally

  1. In rails console run
      project = Project.find(<project_id>)
      FactoryBot.create(:npm_package, :with_build, project: project).tap { |pkg| 10.times.each { |i| FactoryBot.create(:packages_tag, package: pkg, name: "bananas_#{i}") } }
    Note that the command above may fail during the creation of the files, if this is the case the solution is to copy and paste this snippet inside the rails console:
      def fixture_file_upload(*args, **kwargs)
        Rack::Test::UploadedFile.new(*args, **kwargs)
      end
  2. Visit the project package registry.
  3. Click on the created package
  4. Confirm the tags are shown properly in smaller screen sizes.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Rahul Chanila

Merge request reports