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

With overlong question name (or question text when "Show question text in the question list" active), the question bank table is overly wide

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 4.0
    • 4.0
    • Questions
    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • Hide

      To test this sensibly, you need to create questions in your question bank with tags, idnumber and long question names and question text.

      1. Go to the question bank in a course.
      2. Ensure that "Show question text in the question list" is off.
      3. Create a question with a very long name and very long question text.
      4. Verify that at large screen sizes, no column takes up more than about half the width of the screen.
      5. Verify that at smaller screen sizes, no column takes up more than about three quarters of the width of the screen.
      6. Turn on "Show question text in the question list"
      7. Verify that at all screen widths, the question text rows take the full width of the table.
      Show
      To test this sensibly, you need to create questions in your question bank with tags, idnumber and long question names and question text. Go to the question bank in a course. Ensure that "Show question text in the question list" is off. Create a question with a very long name and very long question text. Verify that at large screen sizes, no column takes up more than about half the width of the screen. Verify that at smaller screen sizes, no column takes up more than about three quarters of the width of the screen. Turn on "Show question text in the question list" Verify that at all screen widths, the question text rows take the full width of the table.

      Surely, MDL-74091 has been a great step forward in the display of the question bank table. But, it raises one thing:

      FULL STEPS that developers should take to reproduce the problem:
      Edit a question in a question bank, e.g. https://qa.moodledemo.net/question/bank/editquestion/question.php?id=2&qtype=match&courseid=2&returnurl=%2Fquestion%2Fedit.php%3Fcourseid%3D2 to have Question name "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua." and question text "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet." and save and return to the question bank.

      Do look at the table with "Show question text in the question list" active as well as with "Show question text in the question list" inactive.

      WHAT YOU EXPECTED
      Question name: After some character, there's an ellipsis and the string is truncated
      Question text: line breaks.
      WHAT ACTUALLY HAPPENS
      Question name: The whole text is shown and it broadens the table's width.
      Question text: The whole text is shown and it broadens the table's width.

        1. MDL-74331_1.png
          MDL-74331_1.png
          116 kB
        2. MDL-74331_2.png
          MDL-74331_2.png
          86 kB
        3. MDL-74331_3.png
          MDL-74331_3.png
          117 kB
        4. MDL-74331_4.png
          MDL-74331_4.png
          90 kB
        5. MDL-74331_retest_1.png
          MDL-74331_retest_1.png
          117 kB
        6. MDL-74331_retest_2.webm
          258 kB
        7. MDL-74331_retest_3.png
          MDL-74331_retest_3.png
          125 kB
        8. MDL-74331_retest_4.webm
          336 kB
        9. qbtable.png
          qbtable.png
          1.28 MB
        10. Screenshot 2022-04-04 at 15.23.37.png
          Screenshot 2022-04-04 at 15.23.37.png
          1017 kB

            timhunt Tim Hunt
            lucaboesch Luca Bösch
            Bas Brands Bas Brands
            Andrew Lyons Andrew Lyons
            Angelia Dela Cruz Angelia Dela Cruz
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 35 minutes
                35m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.