From 5f8ae5171dedd06b489d8bb75579ea0985c2ba7f Mon Sep 17 00:00:00 2001 From: Gamosoft Date: Tue, 13 Jan 2026 12:21:19 +0100 Subject: [PATCH] more tabs in mobile card view/navigate to home --- frontend/app.js | 12 ++++++++++ frontend/index.html | 58 ++++++++++++++++++++++++++++----------------- 2 files changed, 48 insertions(+), 22 deletions(-) diff --git a/frontend/app.js b/frontend/app.js index 83f482d..525c23b 100644 --- a/frontend/app.js +++ b/frontend/app.js @@ -5105,6 +5105,18 @@ function noteApp() { window.history.pushState({ homepageFolder: '' }, '', '/'); }, + // Mobile files/home tab - context-aware behavior + mobileFilesTabClick() { + if (this.currentNote || this.currentImage || this.showGraph) { + // Viewing content → go home + this.goHome(); + } else { + // On homepage → toggle files sidebar + this.activePanel = 'files'; + this.mobileSidebarOpen = !this.mobileSidebarOpen; + } + }, + // ==================== GRAPH VIEW ==================== // Initialize the graph visualization diff --git a/frontend/index.html b/frontend/index.html index e9e1334..10e89e6 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -1154,6 +1154,16 @@ display: none !important; } } + + /* Responsive homepage cards */ + .homepage-card { + min-height: 70px; + } + @media (min-width: 640px) { + .homepage-card { + min-height: 140px; + } + } @@ -1972,20 +1982,20 @@