Skip to content

Commit b99369d

Browse files
committed
fixed sidebar overlapping with python playground
1 parent 4d24a24 commit b99369d

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
@@ -2749,6 +2749,15 @@ body.sidebar-active .sidebar-dock {
27492749
color: var(--accent);
27502750
}
27512751

2752+
body.sidebar-active:not(.sidebar-collapsed) .playground-section {
2753+
padding-left: 296px !important;
2754+
}
2755+
2756+
body.sidebar-collapsed .playground-section {
2757+
padding-left: 128px !important;
2758+
}
2759+
2760+
27522761
/* ── CodeMirror 6 Editor Container ─────────────────────────── */
27532762
#pythonEditor {
27542763
flex: 1;
@@ -6351,4 +6360,5 @@ body.sidebar-active .projects-section,
63516360
body.sidebar-collapsed .projects-section {
63526361
padding-left: 0 !important;
63536362
padding-right: 0 !important;
6363+
}
63546364
}

web-app/index.html

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

web-app/js/main.js

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

12961296
if (modalClose) modalClose.addEventListener("click", closeProjectSafe);
12971297
if (modal) {
@@ -1849,4 +1849,5 @@ projectCards.forEach(card => {
18491849
// Initial card filtering state update
18501850
updateProjectVisibility(currentCategory, currentSearchQuery);
18511851
window.updateRecentlyViewed();
1852+
}
18521853
});

0 commit comments

Comments
 (0)