This commit is contained in:
赵一寰 2026-03-16 00:13:10 +08:00
parent 0e0c1da5ff
commit 1b4227930a
2 changed files with 3 additions and 2 deletions

View File

@ -1515,6 +1515,7 @@ export function renderApp(state: AppViewState) {
.password=${state.settings.vncPassword}
@close=${() => state.toggleClawComputer()}
@float=${() => state.setClawComputerWidth(0)}
@dock=${() => state.setClawComputerWidth(600)}
style="flex: 1; min-height: 0;"
></claw-computer-panel>
</div>

View File

@ -582,9 +582,9 @@ export class ClawComputerPanel extends LitElement {
} else {
// 在右侧松手,保持停靠模式
this.isFloating = false;
// 重置偏移量
this.dockedOffsetY = this.initialRect.offsetY;
this.dockedOffsetX = 0;
// 触发事件告诉父组件展开停靠面板
this.dispatchEvent(new CustomEvent("dock", { bubbles: true, composed: true }));
}
this.cleanupDragListeners();