Skip to content

Commit 4ba20d9

Browse files
committed
Fix: Sidebar visible, track route displyas and recently viewed section updates properly
1 parent 6d6de93 commit 4ba20d9

3 files changed

Lines changed: 31 additions & 2 deletions

File tree

web-app/generate_banners.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,6 @@ def draw_o(ox, oy):
453453
v_draw.text((400,225), "⇄",
454454
fill=color_accent,
455455
anchor="mm")
456-
457456
elif "pet" in n_lower or "productivity" in n_lower:
458457
# Cute paw print
459458
cx, cy = 400, 225
@@ -534,6 +533,7 @@ def draw_o(ox, oy):
534533
("Productive Pet", "utilities", "productive-pet.webp"),
535534
("Progress Tracker", "utilities", "progress-tracker.webp"),
536535
("Reverse Hangman", "games", "reverse-hangman.webp"),
536+
("Chess Game", "games", "chess.webp"),
537537

538538
# MATH
539539
("AP/GP/AGP/HP Recognizer", "math", "progression-recognizer.webp"),

web-app/index.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1526,6 +1526,34 @@ <h2>${projectName.replace(/-/g, " ").toUpperCase()}</h2>
15261526
console.log('✅ Modal fix loaded');
15271527
})();
15281528
</script>
1529+
1530+
<script>
1531+
// FIX 1: Add missing toPascalCase function
1532+
if (typeof window.toPascalCase !== 'function') {
1533+
window.toPascalCase = function(str) {
1534+
return str.split('-').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join('');
1535+
};
1536+
console.log('✅ toPascalCase function added');
1537+
}
1538+
1539+
// FIX 2: Fix modal focus error
1540+
setTimeout(function() {
1541+
const modal = document.getElementById('projectModal');
1542+
if (modal) {
1543+
// Remove any broken focus code
1544+
modal.removeAttribute('tabindex');
1545+
}
1546+
1547+
// Fix any focus-related errors
1548+
const activeElement = document.activeElement;
1549+
if (!activeElement || activeElement === document.body) {
1550+
document.body.setAttribute('tabindex', '-1');
1551+
document.body.style.outline = 'none';
1552+
}
1553+
1554+
console.log('✅ Focus error fixed');
1555+
}, 100);
1556+
</script>
15291557

15301558
<!-- Info Modal Popup -->
15311559
<div id="infoModalOverlay" class="info-modal-overlay">

web-app/js/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1277,7 +1277,8 @@ document.addEventListener("DOMContentLoaded", function () {
12771277
renderRecentSearches();
12781278
});
12791279
}
1280-
1280+
});
1281+
12811282
// Clear content
12821283
if (modalBody) {
12831284
modalBody.innerHTML = "";

0 commit comments

Comments
 (0)