Skip to content

Fix Sort dropdown reflow issue in Todos page

Jarkko Asgård requested to merge (removed):22562-todos-filters into master

What does this MR do?

  • Make "Sort by" dropdown behave the same as filters in narrower viewports (left-aligned, full-width dropdown element)
  • Adjust dropdowns to fit on the same line in worst-case scenario ("Oldest created" selected). The float issue is noticeable when viewport is resized to 768 pixels.

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

The following CSS classes were changed

  • .filter-item

The applied change affects the following pages:

  • /app/views/dashboard/todos/index.html.haml
  • /app/views/shared/issuable/_filter.html.haml
  • /app/views/shared/issuable/_search_bar.html.haml

The following CSS classes were added

  • .sort-filter
  • .dropdown-menu-sort
  • .dropdown-menu-toggle-sort

All new CSS classes only affect the Todos page:

  • /app/views/dashboard/todos/index.html.haml

Why was this MR needed?

The "Sort by" dropdown on the Todos page doesn't reflow correctly when you resize the window.

Screenshots (if relevant)

Before

todos-filters-before

After

todos-filters-after

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #22562 (closed)

Merge request reports