fix: update module name element instead of overwriting pill
Some checks failed
Deploy static content to Pages / deploy (push) Has been cancelled
Some checks failed
Deploy static content to Pages / deploy (push) Has been cancelled
- Add moduleName element reference for .module-name span - Update only module name text, preserving level indicator 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -21,6 +21,7 @@ const elements = {
|
||||
|
||||
// Left panel
|
||||
modulePill: document.getElementById("module-pill"),
|
||||
moduleName: document.querySelector(".module-name"),
|
||||
lessonTitle: document.getElementById("lesson-title"),
|
||||
lessonDescription: document.getElementById("lesson-description"),
|
||||
taskInstruction: document.getElementById("task-instruction"),
|
||||
@@ -315,9 +316,9 @@ function loadCurrentLesson() {
|
||||
// Update UI based on mode
|
||||
updateEditorForMode(mode);
|
||||
|
||||
// Update module pill with category name
|
||||
if (elements.modulePill && engineState.module) {
|
||||
elements.modulePill.textContent = engineState.module.title;
|
||||
// Update module name in pill
|
||||
if (elements.moduleName && engineState.module) {
|
||||
elements.moduleName.textContent = engineState.module.title;
|
||||
}
|
||||
|
||||
// Reset any success indicators
|
||||
|
||||
Reference in New Issue
Block a user