((_, ref) => {
))}
- {/* Divider after main buttons */}
-
+ {/* Divider after main buttons (creates gap) */}
+ {middleButtons.length === 0 && (
+
+ )}
{/* Middle section */}
-
- {middleButtons.map((config, index) => (
-
- {renderNavButton(config, index)}
-
- ))}
-
+ {middleButtons.length > 0 && (
+ <>
+
+
+ {middleButtons.map((config, index) => (
+
+ {renderNavButton(config, index)}
+
+ ))}
+
+ >
+ )}
{/* Spacer to push bottom buttons to bottom */}
@@ -331,6 +343,11 @@ const QuickAccessBar = forwardRef
((_, ref) => {
opened={configModalOpen}
onClose={() => setConfigModalOpen(false)}
/>
+
+ setInviteModalOpen(false)}
+ />
);
});
diff --git a/frontend/src/core/components/shared/RightRail.tsx b/frontend/src/core/components/shared/RightRail.tsx
index 8efe507a1..bec38b0fe 100644
--- a/frontend/src/core/components/shared/RightRail.tsx
+++ b/frontend/src/core/components/shared/RightRail.tsx
@@ -14,6 +14,8 @@ import { ViewerContext } from '@app/contexts/ViewerContext';
import { useSignature } from '@app/contexts/SignatureContext';
import LocalIcon from '@app/components/shared/LocalIcon';
import { RightRailFooterExtensions } from '@app/components/rightRail/RightRailFooterExtensions';
+import DarkModeIcon from '@mui/icons-material/DarkMode';
+import LightModeIcon from '@mui/icons-material/LightMode';
import { useSidebarContext } from '@app/contexts/SidebarContext';
import { RightRailButtonConfig, RightRailRenderContext, RightRailSection } from '@app/types/rightRail';
@@ -39,7 +41,7 @@ export default function RightRail() {
const { sidebarRefs } = useSidebarContext();
const { t } = useTranslation();
const viewerContext = React.useContext(ViewerContext);
- const { toggleTheme } = useRainbowThemeContext();
+ const { toggleTheme, themeMode } = useRainbowThemeContext();
const { buttons, actions, allButtonsDisabled } = useRightRail();
const { pageEditorFunctions, toolPanelMode, leftPanelView } = useToolWorkflow();
@@ -195,7 +197,11 @@ export default function RightRail() {
className="right-rail-icon"
onClick={toggleTheme}
>
-