save code

This commit is contained in:
赵一寰 2026-03-19 10:28:44 +08:00
parent 59f46fc0d4
commit 5bc114ea83

View File

@ -88,10 +88,12 @@ export class ClawComputerPanel extends LitElement {
return;
}
const screen = this.shadowRoot.querySelector(".screen");
if (!screen) {
const screenElement = this.shadowRoot.querySelector(".screen");
if (!screenElement) {
return;
}
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
const screen = screenElement as HTMLElement;
const hostHeight = this.offsetHeight;
const screenHeight = screen.offsetHeight;