fix: reflow composer beside workspace rail · openclaw/openclaw@1a87476
Solvely-Coli
·
2026-06-14
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -19,6 +19,17 @@
|
19 | 19 | box-shadow: none !important; |
20 | 20 | } |
21 | 21 | |
| 22 | +.chat-workbench__main { |
| 23 | +grid-column: 1; |
| 24 | +grid-row: 1; |
| 25 | +display: flex; |
| 26 | +flex-direction: column; |
| 27 | +flex: 1 1 0; |
| 28 | +width: 100%; |
| 29 | +min-width: 0; |
| 30 | +min-height: 0; |
| 31 | +} |
| 32 | + |
22 | 33 | /* Chat header - fixed at top, transparent */ |
23 | 34 | .chat-header { |
24 | 35 | display: flex; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -41,6 +41,8 @@
|
41 | 41 | } |
42 | 42 | |
43 | 43 | .chat-workspace-rail { |
| 44 | +grid-column: 2; |
| 45 | +grid-row: 1; |
44 | 46 | display: flex; |
45 | 47 | flex-direction: column; |
46 | 48 | min-width: 0; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -908,6 +908,15 @@ describe("chat composer workbench", () => {
|
908 | 908 | expect( |
909 | 909 | container.querySelector(".agent-chat__composer-controls .test-composer-control"), |
910 | 910 | ).not.toBeNull(); |
| 911 | +const workbench = container.querySelector(".chat-workbench"); |
| 912 | +const main = container.querySelector(".chat-workbench__main"); |
| 913 | +const rail = container.querySelector(".chat-workspace-rail"); |
| 914 | +expect(main?.parentElement).toBe(workbench); |
| 915 | +expect(rail?.parentElement).toBe(workbench); |
| 916 | +expect(Array.from(workbench?.children ?? []).map((child) => child.className)).toEqual([ |
| 917 | +"chat-workspace-rail", |
| 918 | +"chat-workbench__main", |
| 919 | +]); |
911 | 920 | expect(container.querySelector(".chat-workspace-rail__path")?.textContent?.trim()).toBe( |
912 | 921 | "/workspace", |
913 | 922 | ); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。