Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-70062

Mix of p-1 and hardcoded values used to create activity chooser grid

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.9.2
    • Fix Version/s: None
    • Component/s: HTML and CSS, Themes
    • Labels:
      None
    • Affected Branches:
      MOODLE_39_STABLE

      Description

      The new activity chooser has a grid of options.

       

      To get 6 across, the CSS is setting their width to 1/6 of the width after subtracting .5rem. The .5rem is to account for the two p-1 used on each side (which is 2.5rem in the default theme)

      If a theme changes things such that the p-1 is no longer exactly equal to .25rem, then the grid breaks, and you get a gap at the side when looking at all the activities.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            bawjaws David Scotson
            Participants:
            Component watchers:
            Amy Groshek, David Scotson, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona), Bas Brands
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: