style(workspace): remove the embedded work preview title bar
This commit is contained in:
1 parent
d284287741
commit
064096edbd
5 files changed
+26
-6
No files matched your search
@@ -480,23 +480,24 @@ export function AgentBrowserPanel({
|
||||
ref={panelRef}
|
||||
className={cn(embedded ? 'relative flex min-h-0 w-full min-w-0 flex-1 flex-col overflow-hidden bg-background' : 'relative flex w-[400px] min-w-[300px] max-w-[48vw] shrink-0 flex-col overflow-hidden border-l border-border/80 bg-background shadow-[-16px_0_32px_hsl(220_20%_16%_/_0.06)] max-[900px]:fixed max-[900px]:inset-y-10 max-[900px]:right-0 max-[900px]:z-40 max-[900px]:max-w-[min(92vw,420px)]')}
|
||||
data-testid="agent-browser-panel"
|
||||
aria-label={embedded ? '作品预览' : '开发浏览器'}
|
||||
>
|
||||
<div className="flex h-10 shrink-0 items-center gap-2 border-b border-border/70 px-2.5">
|
||||
{!embedded && <div className="flex h-10 shrink-0 items-center gap-2 border-b border-border/70 px-2.5">
|
||||
<span className="flex h-6 w-6 items-center justify-center rounded-md bg-brand-soft text-brand">
|
||||
<Globe2 className="h-3.5 w-3.5" aria-hidden="true" />
|
||||
</span>
|
||||
<h2 className="min-w-0 flex-1 truncate text-xs font-semibold">{embedded ? '作品预览' : '开发浏览器'}</h2>
|
||||
<h2 className="min-w-0 flex-1 truncate text-xs font-semibold">开发浏览器</h2>
|
||||
<Button
|
||||
type="button"
|
||||
variant="ghost"
|
||||
size="icon"
|
||||
className="h-8 w-8 rounded-md text-muted-foreground"
|
||||
aria-label={embedded ? '收起作品' : '关闭开发浏览器'}
|
||||
aria-label="关闭开发浏览器"
|
||||
onClick={() => onOpenChange(false)}
|
||||
>
|
||||
<X className="h-4 w-4" aria-hidden="true" />
|
||||
</Button>
|
||||
</div>
|
||||
</div>}
|
||||
|
||||
<form className="flex h-10 shrink-0 items-center gap-1 border-b border-border/70 px-2" onSubmit={handleOpenAddress}>
|
||||
<Button type="button" variant="ghost" size="icon" className="h-7 w-7 rounded-md" aria-label="后退" disabled={!snapshot?.canGoBack || busy} onClick={() => handleNavigate('back')}>
|
||||
|
||||
Reference in new issue
Block a user