@allbluecn/web-app 0.24.3 → 0.24.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -560,21 +560,26 @@ export default function HarnessWorkbenchPage({ initialThreadId, initialMessages,
|
|
|
560
560
|
|
|
561
561
|
const centerContent = (
|
|
562
562
|
<div className="flex h-full flex-col">
|
|
563
|
-
|
|
563
|
+
{/* 头部整行为桌面壳窗口拖动区 + 交互簇 no-drag(story-panel-header 同款,见
|
|
564
|
+
globals.css 注释);顶缘 h-6 拖动带只盖到 y=24,本行按钮 top≈21 需要
|
|
565
|
+
no-drag 减除才能完整可点 */}
|
|
566
|
+
<div className="app-region-drag flex shrink-0 items-center gap-2 border-b px-4 py-3">
|
|
564
567
|
{engine === "local" ? (
|
|
565
568
|
<span className="inline-flex items-center gap-1.5 rounded-md border border-border bg-muted/40 px-2 py-1 text-xs text-muted-foreground">
|
|
566
569
|
<FolderOpen className="size-3.5" />
|
|
567
570
|
{m.harness_engine_localBadge()}
|
|
568
571
|
</span>
|
|
569
572
|
) : (
|
|
570
|
-
<
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
573
|
+
<div className="app-region-no-drag min-w-0">
|
|
574
|
+
<AgentPresetPicker
|
|
575
|
+
value={selectedAgentId}
|
|
576
|
+
onValueChange={handleAgentChange}
|
|
577
|
+
agents={agents ?? []}
|
|
578
|
+
/>
|
|
579
|
+
</div>
|
|
575
580
|
)}
|
|
576
581
|
<h2 className="truncate font-semibold">{activeConversation?.title ?? m.chat_newConversation()}</h2>
|
|
577
|
-
<div className="ml-auto flex items-center gap-1">
|
|
582
|
+
<div className="app-region-no-drag ml-auto flex items-center gap-1">
|
|
578
583
|
<Button
|
|
579
584
|
size="icon"
|
|
580
585
|
variant="ghost"
|
|
@@ -112,7 +112,7 @@ export const SDK_GROUPS: SdkGroup[] = [
|
|
|
112
112
|
"items": [
|
|
113
113
|
{
|
|
114
114
|
"name": "@allbluecn/web-app",
|
|
115
|
-
"version": "v0.24.
|
|
115
|
+
"version": "v0.24.4",
|
|
116
116
|
"lastUpdate": "Nov 3, 2026",
|
|
117
117
|
"source": "apps/web/package.json",
|
|
118
118
|
"docsUrl": "https://github.com/allbluecn/allblue"
|
|
@@ -27,15 +27,17 @@ import { usePresenceReport } from '@/lib/collab/use-presence-report'
|
|
|
27
27
|
import { NavigationIndicator } from './-components/navigation-indicator'
|
|
28
28
|
import { isDesktopEdition } from '@/lib/edition-desktop'
|
|
29
29
|
|
|
30
|
-
//
|
|
31
|
-
//
|
|
32
|
-
//
|
|
33
|
-
//
|
|
34
|
-
//
|
|
35
|
-
//
|
|
30
|
+
// 桌面壳顶缘拖动带:从窗口顶铺到列表工具栏上缘(y 0-24)。布局结构保证:
|
|
31
|
+
// SidebarInset 自 mt-2(8px) 起、页面根 p-4(16px),最早的可交互控件出现在
|
|
32
|
+
// y=24(需求/BUG/测例列表工具栏),故 h-6 恒在按钮/文字上方、不遮挡交互;
|
|
33
|
+
// y<24 内的头部控件(侧栏红绿灯行按钮、PeekPanel/AI 面板头)均已在各自
|
|
34
|
+
// header 标 app-region-no-drag,会从本条区域中减去(几何区域语义,
|
|
35
|
+
// mousedown 落在 drag 矩形内即被吞、与 z-order 无关,见 globals.css 注释;
|
|
36
|
+
// 2026-11-02 h-11 全宽条曾吞掉全部顶部点击)。⚠ 新页面若把控件提到 y<24,
|
|
37
|
+
// 必须为它标 no-drag。浏览器/云端部署 no-op。
|
|
36
38
|
function DesktopDragStrip() {
|
|
37
39
|
if (!isDesktopEdition()) return null
|
|
38
|
-
return <div aria-hidden className="app-region-drag fixed inset-x-0 top-0 z-0 h-
|
|
40
|
+
return <div aria-hidden className="app-region-drag fixed inset-x-0 top-0 z-0 h-6" />
|
|
39
41
|
}
|
|
40
42
|
|
|
41
43
|
export const Route = createLazyFileRoute('/_nav')({
|
package/src/styles/globals.css
CHANGED
|
@@ -852,9 +852,10 @@ html.theme-transitioning *::after {
|
|
|
852
852
|
⚠ drag 是「几何区域」语义:mousedown 落在 drag 矩形内即被吞,与元素 z-index /
|
|
853
853
|
绘制层级无关(z-0 拖动条压不住 z-10 面板,只有 no-drag 元素能从区域中减去)。
|
|
854
854
|
仅两种 sanctioned 铺法(2026-11-02 实踩:顶缘 h-11 全宽条吞掉了 PeekPanel/
|
|
855
|
-
AI 面板头部与页面工具栏的全部点击,已删):① _nav 顶缘 h-
|
|
856
|
-
|
|
857
|
-
|
|
855
|
+
AI 面板头部与页面工具栏的全部点击,已删):① _nav 顶缘 h-6 拖动带——从窗口
|
|
856
|
+
顶到列表工具栏上缘(y=24,由 mt-2 + 页面 p-4 结构保证),页面控件不得高于
|
|
857
|
+
y<24,有例外必须标 no-drag;② 头部整行 drag + 交互元素/簇逐个 no-drag
|
|
858
|
+
(侧栏 header、面板头部)。禁止横跨交互内容的粗条。 */
|
|
858
859
|
.app-region-drag {
|
|
859
860
|
-webkit-app-region: drag;
|
|
860
861
|
}
|