Skip to content

Commit 53afdbc

Browse files
Merge pull request steam-bell-92#1168 from anujsharma8d/fix/overlapping-sidebar
fix: sidebar overlapping with python playground
2 parents 8131543 + da59d4c commit 53afdbc

3 files changed

Lines changed: 12 additions & 15 deletions

File tree

web-app/css/styles.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2788,6 +2788,15 @@ body.sidebar-active .sidebar-dock {
27882788
color: var(--accent);
27892789
}
27902790

2791+
body.sidebar-active:not(.sidebar-collapsed) .playground-section {
2792+
padding-left: 296px !important;
2793+
}
2794+
2795+
body.sidebar-collapsed .playground-section {
2796+
padding-left: 128px !important;
2797+
}
2798+
2799+
27912800
/* ── CodeMirror 6 Editor Container ─────────────────────────── */
27922801
#pythonEditor {
27932802
flex: 1;
@@ -6384,3 +6393,4 @@ body.sidebar-collapsed .projects-section {
63846393
padding-left: 0 !important;
63856394
padding-right: 0 !important;
63866395
}
6396+
}

web-app/index.html

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -576,20 +576,6 @@ <h2 class="playground-title">🐍 Python Playground</h2>
576576
<kbd>Tab</kbd> inserts 4 spaces
577577
</p>
578578
</div>
579-
580-
<div class="project-card" data-project="nqueens" data-category="utilities">
581-
<div class="card-icon">👑</div>
582-
<h3>N-Queen Problem Solver</h3>
583-
<p>Place queens safely on the board using backtracking.</p>
584-
<button class="btn-play">Try It</button>
585-
</div>
586-
587-
588-
<div class="project-card" data-category="utilities" data-project="tower-of-hanoi">
589-
<div class="card-icon">🗼</div>
590-
<h3>Tower of Hanoi</h3>
591-
<p>Solve the classic puzzle!</p>
592-
<button class="btn-play">Try It</button>
593579
<div class="playground-body">
594580
<div class="editor-panel">
595581
<div class="panel-header">

web-app/js/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1293,7 +1293,7 @@ document.addEventListener("DOMContentLoaded", function () {
12931293
}, 50);
12941294
}
12951295
lastFocusedElement = null;
1296-
}
1296+
})
12971297

12981298
if (modalClose) modalClose.addEventListener("click", closeProjectSafe);
12991299
if (modal) {
@@ -1851,4 +1851,5 @@ projectCards.forEach(card => {
18511851
// Initial card filtering state update
18521852
updateProjectVisibility(currentCategory, currentSearchQuery);
18531853
window.updateRecentlyViewed();
1854+
}
18541855
});

0 commit comments

Comments
 (0)