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

Long week names overflow main region

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.9.7, 3.0.5, 3.1.1, 3.2
    • Fix Version/s: 3.2
    • Component/s: Themes
    • Labels:
    • Testing Instructions:
      Hide
      1. Select the Clean theme.
      2. Create a course with 'Weekly format'.
      3. Turn editing on and edit the week name.
      4. Enter a long name, such as "9 September - 15 September: Test testing test testing test testing test testing test".
      5. Turn editing off.
      6. Observe that the week name does not overflow the main region on a screen <= 1920 pixels wide.
      Show
      Select the Clean theme. Create a course with 'Weekly format'. Turn editing on and edit the week name. Enter a long name, such as "9 September - 15 September: Test testing test testing test testing test testing test". Turn editing off. Observe that the week name does not overflow the main region on a screen <= 1920 pixels wide.
    • Workaround:
      Hide

      Put the following CSS in the theme custom CSS box:

      ul.weeks h3.sectionname {
       
          white-space: normal;
       
      }
      

      Show
      Put the following CSS in the theme custom CSS box: ul.weeks h3.sectionname {   white-space: normal;   }
    • Affected Branches:
      MOODLE_29_STABLE, MOODLE_30_STABLE, MOODLE_31_STABLE, MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_32_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      wip_MDL-55913_master

      Description

      With the Weeks course format if you have a long custom week (section) name then it can overflow the main region when editing is off.

      Caused by: https://github.com/moodle/moodle/blob/8903b17b01463def54d329fc9c4283341e1ff3d1/theme/bootstrap/less/moodle/course.less#L254-L259
      Form post: https://moodle.org/mod/forum/discuss.php?d=339503

      Affects Clean, More and any other theme with Bootstrapbase as a parent.

      Image of issue:

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  5/Dec/16