fix
This commit is contained in:
parent
0e0c1da5ff
commit
1b4227930a
@ -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>
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user