Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix: reposition notification dropdown to sidebar footer
Adam Eivy58170a4df2cd
diff --git a/client/src/components/Layout.jsx b/client/src/components/Layout.jsxindex 494b566a31..59ff7b6907 100644--- a/client/src/components/Layout.jsx+++ b/client/src/components/Layout.jsx@@ -328,9 +328,23 @@ export default function Layout() {{navItems.map(renderNavItem)}</nav>- {/* Footer with version */}- <div className={`p-4 border-t border-port-border text-sm text-gray-500 ${collapsed ? 'lg:hidden' : ''}`}>- <span>v{packageJson.version}</span>+ {/* Footer with version and notifications */}+ <div className={`p-4 border-t border-port-border ${collapsed ? 'lg:flex lg:justify-center' : ''}`}>+ <div className={`flex items-center ${collapsed ? 'lg:justify-center' : 'justify-between'}`}>+ <span className={`text-sm text-gray-500 ${collapsed ? 'lg:hidden' : ''}`}>+ v{packageJson.version}+ </span>+ <div className={collapsed ? '' : ''}>+ <NotificationDropdown+ notifications={notifications}+ unreadCount={unreadCount}+ onMarkAsRead={markAsRead}+ onMarkAllAsRead={markAllAsRead}+ onRemove={removeNotification}+ onClearAll={clearAll}+ />+ </div>+ </div></div></aside>@@ -357,21 +371,10 @@ export default function Layout() {onMarkAllAsRead={markAllAsRead}onRemove={removeNotification}onClearAll={clearAll}+ position="top"/></header>- {/* Desktop notification dropdown - fixed position top right */}- <div className="hidden lg:block fixed top-4 right-4 z-50">- <NotificationDropdown- notifications={notifications}- unreadCount={unreadCount}- onMarkAsRead={markAsRead}- onMarkAllAsRead={markAllAsRead}- onRemove={removeNotification}- onClearAll={clearAll}- />- </div>-{/* Main content */}<main className={`flex-1 overflow-auto ${location.pathname.startsWith('/cos') ? '' : 'p-4 md:p-6'}`}>{location.pathname.startsWith('/cos') ? (diff --git a/client/src/components/NotificationDropdown.jsx b/client/src/components/NotificationDropdown.jsxindex 5c26ca2b98..de9a9432c9 100644--- a/client/src/components/NotificationDropdown.jsx+++ b/client/src/components/NotificationDropdown.jsx@@ -49,7 +49,8 @@ export default function NotificationDropdown({onMarkAsRead,onMarkAllAsRead,onRemove,- onClearAll+ onClearAll,+ position = 'bottom' // 'bottom' opens upward, 'top' opens downward}) {const [isOpen, setIsOpen] = useState(false);const dropdownRef = useRef(null);@@ -93,9 +94,13 @@ export default function NotificationDropdown({)}</button>- {/* Dropdown panel */}+ {/* Dropdown panel - position determines direction */}{isOpen && (- <div className="absolute right-0 mt-2 w-80 bg-port-card border border-port-border rounded-lg shadow-xl z-50 overflow-hidden">+ <div className={`absolute w-80 bg-port-card border border-port-border rounded-lg shadow-xl z-50 overflow-hidden ${+ position === 'bottom'+ ? 'left-0 bottom-full mb-2' // Opens upward from sidebar footer+ : 'right-0 top-full mt-2' // Opens downward from header+ }`}>{/* Header */}<div className="flex items-center justify-between px-4 py-3 border-b border-port-border"><span className="font-medium text-white">Notifications</span>