Spaces:
Runtime error
Runtime error
broken js..
Browse filesFiles changed (2)
- static/app.js+7-2
- static/style.css+36-2
63 unmodified lines64656667686970285 unmodified lines356357358359360361406 unmodified lines76876977077177277377463 unmodified lines// Settingsconst settingsOverlay = document.getElementById('settingsOverlay');const openSettingsBtn = document.getElementById('openSettingsBtn');const closeSettingsBtn= document.getElementById('closeSettingsBtn');const saveSettingsBtn = document.getElementById('saveSettingsBtn');const settingsModal = document.getElementById('settingsModal');285 unmodified lines}).catch(() => {});// Show hero modeenterHeroMode();}406 unmodified linessettingsOverlay.classList.add('show');});settingsCloseBtn.addEventListener('click', () => settingsOverlay.classList.remove('show'));settingsOverlay.addEventListener('click', (e) => {if (e.target === settingsOverlay) settingsOverlay.classList.remove('show');});63 unmodified lines64656667686970285 unmodified lines356357358359360361362363364365366406 unmodified lines77377477577677777877963 unmodified lines// Settingsconst settingsOverlay = document.getElementById('settingsOverlay');const openSettingsBtn = document.getElementById('openSettingsBtn');const settingsCloseBtn= document.getElementById('settingsCloseBtn');const saveSettingsBtn = document.getElementById('saveSettingsBtn');const settingsModal = document.getElementById('settingsModal');285 unmodified lines}).catch(() => {});// On mobile, ensure sidebar starts collapsed so content is visibleif (window.innerWidth <= 768) {collapseSidebar();}// Show hero modeenterHeroMode();}406 unmodified linessettingsOverlay.classList.add('show');});if (settingsCloseBtn) settingsCloseBtn.addEventListener('click', () => settingsOverlay.classList.remove('show'));settingsOverlay.addEventListener('click', (e) => {if (e.target === settingsOverlay) settingsOverlay.classList.remove('show');});
1195 unmodified lines11961197119811991200120112021203120412053 unmodified lines1209121012111212121312148 unmodified lines12231224122512261227122843 unmodified lines1272127312741275127612771278127912801281128212831284128512861195 unmodified lines.mobile-fab-toggle { display: none !important; }@media (max-width: 768px) {/* Sidebar slides in from left as fixed overlay */.sidebar {position: fixed; left: 0; top: 0;height: 100vh; z-index: 40;transition: transform var(--transition), opacity var(--transition);}/* Use transform instead of margin so the overlay sits behind */3 unmodified linesopacity: 0;pointer-events: none;}/* Overlay β must be above main content (z:30) but below sidebar (z:40) */.sidebar-overlay {8 unmodified lines.sidebar-rail { display: none !important; }/* Settings modal β fixed size, never jumps between tabs */.settings-modal {width: 96vw;43 unmodified lines.hero-title { font-size: 22px; }.hero-bot-icon { width: 80px; height: 80px; }.hero-pills { grid-template-columns: 1fr; }.hero-pill { font-size: 12px; padding: 12px 14px; }.login-title { font-size: 20px; white-space: normal; }/* Chat container β tighter side padding so text fills screen */.chat-container {padding: 60px 10px 16px;gap: 16px;}/* Message rows β use full width on mobile */1195 unmodified lines11961197119811991200120112021203120412051206120712081209121012111212121312143 unmodified lines1218121912201221122212231224122512261227122812298 unmodified lines123812391240124112421243124412451246124712481249125043 unmodified lines1294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201195 unmodified lines.mobile-fab-toggle { display: none !important; }@media (max-width: 768px) {/* App container: must not let fixed sidebar ghost-width push content */.app-container {overflow: hidden;position: relative;}/* Sidebar slides in from left as fixed overlay */.sidebar {position: fixed; left: 0; top: 0;width: var(--sidebar-width);height: 100vh;height: 100dvh;z-index: 40;transition: transform var(--transition), opacity var(--transition);}/* Use transform instead of margin so the overlay sits behind */3 unmodified linesopacity: 0;pointer-events: none;}/* When open, reset any desktop negative margin */.sidebar:not(.collapsed) {margin-left: 0;transform: translateX(0);opacity: 1;}/* Overlay β must be above main content (z:30) but below sidebar (z:40) */.sidebar-overlay {8 unmodified lines.sidebar-rail { display: none !important; }/* Main chat must fill entire screen width */.main-chat {width: 100vw;min-width: 100vw;flex: none;}/* Settings modal β fixed size, never jumps between tabs */.settings-modal {width: 96vw;43 unmodified lines.hero-title { font-size: 22px; }.hero-bot-icon { width: 80px; height: 80px; }/* Hero welcome β ensure it scrolls and pills stay on-screen */.hero-welcome {justify-content: flex-start;padding: 20px 16px calc(20px + env(safe-area-inset-bottom));overflow-y: auto;min-height: 0;}.hero-pills { grid-template-columns: 1fr; }.hero-pill { font-size: 12px; padding: 12px 14px; }.hero-input-wrap { max-width: 100%; }.login-title { font-size: 20px; white-space: normal; }/* Chat container β tighter side padding, use dvh for mobile browsers */.chat-container {padding: 60px 10px 16px;gap: 16px;height: 100%;}/* Message rows β use full width on mobile */
static/app.js+7-2
static/style.css+36-2