Skip to content

solve the issue not showing 'show all' by events less than/equal 4.

shadi omar requested to merge 1537-scrollbar-in-course-details-events-list into dev

What does this MR do?

The previous version was not implemented correctly. when the number of events was less than 4, the "show all" button was not appearing. Because we were showing the button only when there are more than 4 (Desktop screen) events. By mobile screen we are show but only two events so we need the button showing even if we have less than 4 events. This version solves mentioned issue.

Related issues


Author's checklist

  • Follow the Style Guide.
  • Issue being solved is linked
  • Screenshots are added
  • A test that checks the issue is resolved (If you don't know how to do that, create the MR as WIP)

Review checklist

All reviewers can help ensure accuracy, clarity, completeness, and adherence to the Style Guide.

1. Primary Reviewer

  • Review by a code reviewer or other selected colleague to confirm accuracy, clarity, and completeness. This can be skipped for minor fixes without substantive content changes.

Closes #1537

Merge request reports