From 9ef2b9fe5ff281c2a7014d88b116247e44025665 Mon Sep 17 00:00:00 2001 From: mARTin-B78 Date: Mon, 11 May 2026 09:10:26 +0200 Subject: [PATCH] fix: hide full header toolbar when left rail is active; fix user menu in left rail - Right header section now also gets display:none when useLeftRail is true, so neither the left nor right header controls are visible in left-rail mode - Replaced UserMenu (which positions from the right edge) with an inline dropdown in the left rail that opens to the right of the rail at left:52px, correctly positioned and functional - Added LogOut icon to lucide imports v1.106.3 --- package.json | 2 +- src/components/WeeklyView.tsx | 37 ++++++++++++++++++++++++++++------- 2 files changed, 31 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index f994ea8..d33e7e3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "my-weekly-todo-list", - "version": "1.106.2", + "version": "1.106.3", "description": "A web-based weekly task management application that organizes to-dos and calendar events in a single, intuitive weekly view", "main": "index.js", "scripts": { diff --git a/src/components/WeeklyView.tsx b/src/components/WeeklyView.tsx index 3bb438a..6eceeca 100644 --- a/src/components/WeeklyView.tsx +++ b/src/components/WeeklyView.tsx @@ -92,6 +92,7 @@ import { Bot, Printer, Star, + LogOut, } from "lucide-react"; const stripHtml = (html: string) => html.replace(/<[^>]*>/g, '').trim(); @@ -1253,6 +1254,7 @@ export default function WeeklyView() { const [showQuickSettings, setShowQuickSettings] = useState(false); const [leftRailExpanded, setLeftRailExpanded] = useState(false); const [flyoutSection, setFlyoutSection] = useState(null); + const [showRailUserMenu, setShowRailUserMenu] = useState(false); const [flyoutY, setFlyoutY] = useState(0); const flyoutTimerRef = useRef(null); const [showProjectsSidebar, setShowProjectsSidebar] = useState(false); @@ -5935,12 +5937,33 @@ export default function WeeklyView() { {railSep} {/* Settings (cogwheel) + User menu at bottom */} - setShowSettings(true)} - language={profile.language} - trigger={} - /> +
+ + {showRailUserMenu && ( + <> +
setShowRailUserMenu(false)} /> +
+
+

{profile.language === "de" ? "Angemeldet als" : "Signed in as"}

+

{session?.user?.email || "User"}

+
+ +
+ +
+ + )} +
)}
@@ -6344,7 +6367,7 @@ export default function WeeklyView() { {/* RIGHT SECTION: Navigation & Tools */} -
+
{/* Secondary actions — hidden on tablet, visible on desktop */}