Skip to content

Commit 26f73a6

Browse files
committed
clean look
1 parent 45d822b commit 26f73a6

File tree

5 files changed

+1379
-49
lines changed

5 files changed

+1379
-49
lines changed

doc/forAI/commonFixesforAI.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## Common Fixes for AI Development
22

3+
### Mobile Navigation Issues
4+
- **Container div conflicts**: Never mix container div approach (`<div id="bubblspace-navbar"></div>`) with auto-initialization - use one or the other
5+
- **CSS conflicts**: Remove `mobile-navbar-fix.css` when using auto-initialization - it hides mobile navigation elements with `display: none !important`
6+
37
### Analytics & Window Object Method Calls
48
- **ALWAYS check method existence**: Use `if (window.AppConfig && typeof window.AppConfig.methodName === 'function')` before calling any window object methods
59
- **Never assume methods exist**: Even if the object exists, the specific method might not be loaded yet or could be missing

index.html

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -773,11 +773,9 @@
773773
</style>
774774
</head>
775775
<body>
776-
<!-- Emergency Mobile Navigation Fix -->
777-
<link rel="stylesheet" href="mobile-navbar-fix.css?v=2024">
776+
778777

779778
<!-- BubblSpace Navigation Component -->
780-
<div id="bubblspace-navbar"></div>
781779
<script src="lib/Pages/components/bubblspace-navbar.js"></script>
782780

783781
<div class="main-container">
@@ -1003,10 +1001,8 @@ <h2 class="feature-title">Canvas Creative Environment</h2>
10031001
window.AppConfig.trackPageView('TimeCapsule-SLM - Complete AI-powered Research & Creative Platform', window.location.href);
10041002
}
10051003

1006-
// Initialize BubblSpace Navbar with home active
1007-
if (window.BubblSpaceNavbar) {
1008-
window.BubblSpaceNavbar.init('home');
1009-
}
1004+
// BubblSpace Navbar will auto-initialize like DeepResearch and Vision
1005+
// No manual initialization needed
10101006
});
10111007

10121008
// Enhanced keyboard navigation

lib/Pages/components/bubblspace-navbar.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,6 +1237,8 @@ if (typeof document !== 'undefined') {
12371237
activeTab = 'deepresearch';
12381238
} else if (currentPage.includes('Playground')) {
12391239
activeTab = 'playground';
1240+
} else if (currentPage.includes('vision')) {
1241+
activeTab = 'vision';
12401242
}
12411243

12421244
// Only initialize if not already initialized and no conflicts

0 commit comments

Comments
 (0)