mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
Add settings to mobile menu and fix header styling
This commit is contained in:
1 parent
2ba959ac0b
commit
d428f19922
3 files changed
+7
-9
No files matched your search
@@ -175,6 +175,7 @@ function HeaderMobileDropdown({ children, className }: { children: ReactNode; cl
|
||||
const isMobile = useMobile();
|
||||
const { pendingCount: permissionCount, setShowDialog } = usePermissions();
|
||||
const { pendingCount: questionCount, navigateToCurrent } = useQuestions();
|
||||
const { open: openSettings } = useSettingsDialog();
|
||||
|
||||
const totalPending = permissionCount + questionCount;
|
||||
|
||||
@@ -214,6 +215,11 @@ function HeaderMobileDropdown({ children, className }: { children: ReactNode; cl
|
||||
)}
|
||||
{totalPending > 0 && children && <DropdownMenuSeparator />}
|
||||
{children}
|
||||
{children && <DropdownMenuSeparator />}
|
||||
<DropdownMenuItem onClick={openSettings} className="gap-2">
|
||||
<Settings className="w-4 h-4" />
|
||||
<span>Settings</span>
|
||||
</DropdownMenuItem>
|
||||
</DropdownMenuContent>
|
||||
</DropdownMenu>
|
||||
);
|
||||
|
||||
@@ -11,7 +11,7 @@ export const PageHeader = React.forwardRef<HTMLElement, PageHeaderProps>(
|
||||
<header
|
||||
ref={ref}
|
||||
className={cn(
|
||||
"sticky top-0 z-10 border-b border-border bg-gradient-to-b from-background via-background to-background backdrop-blur-sm pt-safe",
|
||||
"sticky top-0 z-10 bg-gradient-to-b from-background via-background to-background backdrop-blur-sm pt-safe",
|
||||
className
|
||||
)}
|
||||
{...props}
|
||||
|
||||
@@ -333,11 +333,3 @@ body {
|
||||
color: var(--color-foreground);
|
||||
}
|
||||
}
|
||||
|
||||
:root:not(.dark) .hljs-dark {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.dark .hljs:not(.hljs-dark) {
|
||||
display: none;
|
||||
}
|
||||
Reference in new issue
Block a user