+ // Calculate margins for standalone mode (like Admin Settings and User Profile)
+ const topMarginPx = isStandalone ? (isTopbarOpen ? 74 : 26) : 0;
+ const leftMarginPx = isStandalone ? (sidebarState === "collapsed" ? 26 : 8) : 0;
+ const bottomMarginPx = isStandalone ? 8 : 0;
+ const wrapperStyle: React.CSSProperties = isStandalone ? {
+ marginLeft: leftMarginPx,
+ marginRight: rightSidebarOpen
+ ? `calc(var(--right-sidebar-width, ${rightSidebarWidth}px) + 8px)`
+ : 17,
+ marginTop: topMarginPx,
+ marginBottom: bottomMarginPx,
+ height: `calc(100vh - ${topMarginPx + bottomMarginPx}px)`,
+ transition:
+ "margin-left 200ms linear, margin-right 200ms linear, margin-top 200ms linear",
+ } : {};
+
+ const content = (
+
{error && (
@@ -620,50 +753,49 @@ const NetworkGraphView: React.FC = () => {
)}
{/* --- Toolbar --- */}
-
-
+
-
-