mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 21:04:23 +01:00
Merge remote-tracking branch 'origin/main' into feat/slash-command-parity
# Conflicts: # frontend/src/components/schedules/RunDetailPanel.test.tsx # frontend/src/components/schedules/RunDetailPanel.tsx # frontend/src/pages/__tests__/SessionDetail.export.test.tsx
This commit is contained in:
commit
91607a2531
86 files changed
+2967
-1238
No files matched your search
@@ -45,7 +45,7 @@ function HeaderTitle({ children, logo, className }: HeaderTitleProps) {
|
||||
<img
|
||||
src={theme === 'light' ? "/opencode-wordmark-light.svg" : "/opencode-wordmark-dark.svg"}
|
||||
alt="OpenCode"
|
||||
className="h-6 w-auto sm:h-8"
|
||||
className="ml-2 h-6 w-auto sm:ml-0 sm:h-8"
|
||||
/>
|
||||
) : (
|
||||
<h1 className="text-xl font-semibold bg-gradient-to-r from-foreground to-muted-foreground bg-clip-text text-transparent truncate">
|
||||
|
||||
@@ -88,15 +88,17 @@ export interface SideDrawerHeaderProps {
|
||||
title: string
|
||||
onClose: () => void
|
||||
meta?: React.ReactNode
|
||||
actions?: React.ReactNode
|
||||
}
|
||||
|
||||
export function SideDrawerHeader({ title, onClose, meta }: SideDrawerHeaderProps) {
|
||||
export function SideDrawerHeader({ title, onClose, meta, actions }: SideDrawerHeaderProps) {
|
||||
return (
|
||||
<div className="flex-shrink-0 border-b border-border bg-background px-4 py-2 flex items-center justify-between gap-3">
|
||||
<div className="min-w-0 flex-1">
|
||||
<h2 className="text-lg font-semibold text-foreground leading-none">{title}</h2>
|
||||
{meta ? <div className="mt-1 min-w-0">{meta}</div> : null}
|
||||
</div>
|
||||
{actions ? <div className="flex shrink-0 items-center gap-1">{actions}</div> : null}
|
||||
<button
|
||||
type="button"
|
||||
onClick={onClose}
|
||||
|
||||
Reference in new issue
Block a user