sensei icon indicating copy to clipboard operation
sensei copied to clipboard

Courses: Custom content width in Learning Mode template is not applied to lessons

Open dericleeyy opened this issue 11 months ago • 5 comments

Steps to Reproduce

  1. Edit the learning mode template
  2. Click on Content Block in Main Content
  3. Set a custom content width
  4. Save
  5. View a lesson

What I Expected

The lessons to follow the custom content width set

What Happened Instead

When viewing a lesson, the styling is followed at first, but it reloads and resets the content width to fill up the entire screen

PHP / WordPress / Sensei LMS version

WP 6.7.1 Sensei 4.24.4

Screenshot / Video

Image Image

Context / Source

9121185-zen

dericleeyy avatar Dec 04 '24 10:12 dericleeyy

Support References

This comment is automatically generated. Please do not edit it.

  • [ ] 9121185-zen

github-actions[bot] avatar Dec 04 '24 10:12 github-actions[bot]

@dericleeyy ~Could you please add the theme you were using as it may be relevant? 🙇‍♀~ From the ticket, looks like it's the Course theme. Moving to the themes repo.

donnapep avatar Dec 04 '24 13:12 donnapep

📌 REPRODUCTION RESULTS

  • Tested on Atomic – Replicated

📌 FINDINGS/SCREENSHOTS/VIDEO The site's main content width overrides anything set in the template https://github.com/user-attachments/assets/0c719f4d-8f67-4e9e-aa28-140515faa5b6

📌 ACTIONS

  • Triaged & prioritized
  • Clarified title and added a step to make it easier to reproduce

supernovia avatar Dec 04 '24 18:12 supernovia

@donnapep I don't think this is theme-dependent. I reproduced it on the Twenty Twenty-Four theme.

I suspect this has something to do with the reactivity of the content to the width of the browser.

dericleeyy avatar Dec 05 '24 02:12 dericleeyy

Confirmed. Moving back to Sensei.

donnapep avatar Dec 11 '24 18:12 donnapep